[Scilab-users] 3D ?=3D=3D?utf-8?q? e?=
Chin Luh Tan
chinluh.tan at bytecode-asia.com
Thu Feb 13 14:17:58 CET 2020
sure, here it is:
http://bugzilla.scilab.org/show_bug.cgi?id=16325
rgds,
CL
---- On Thu, 13 Feb 2020 20:15:05 +0800 Antoine Monmayrant <antoine.monmayrant at laas.fr> wrote ----
Well, that sounds like a bug!
Could you report it?
Cheers,
Antoine
Le 12/02/2020 à 17:02, Chin Luh Tan a
écrit :
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
to add on, it might not just affect csvRead, but also
others file IO functions as well:
how to reproduce:
// Not OK
a = ones(1,300000);
b = strcat(string(a));
mputl(b,'test.txt');
c = mgetl('test.txt');
then a is 250,000 mgetl get the string correctly, but when
a is 300,000, it return empty string.
on the other hand, file in single column of data working
fine.
// OK
a = ones(1,300000);
b = string(a);
mputl(b,'test.txt');
c = mgetl('test.txt');
thanks.
rgds,
CL
---- On Wed, 12 Feb 2020 23:40:45 +0800 arctica1963 mailto:arctica1963 at gmail.com wrote ----
PI250KDP.TXT <http://mailinglists.scilab.org/file/t495709/PI250KDP.TXT>
PI500KDP.TXT <http://mailinglists.scilab.org/file/t495709/PI500KDP.TXT>
clear
// path to the txt file
path = 'PI250KDP.txt'
// read the file as string
piAsString = csvRead(path, [],[],'string')
// split the string at '' (use no token)
[piAsString] = strsplit(piAsString,'');
// convert string to double
piDigits = strtod(piAsString);
// search: how often appears a certain value in a specific
range within the
digits
searchRange = 10000;
searchVal = 1;
// adapt the range, to search only places behind the
decimal sign
[locations] = find(piDigits(1:searchRange+1) ==
searchVal); // small tweak
here
printf("The number %d appears %d times in the first %d
digits of
Pi\n",searchVal,length(locations),searchRange) ;
printf("The number %d appears at following locations: \n",
searchVal);
disp(locations');
The 250K file works; the 500k file fails
--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
mailto:users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
mailto:users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200213/0e26620d/attachment.htm>
More information about the users
mailing list