[Scilab-users] Loading multiple text files
Samuel Gougeon
sgougeon at free.fr
Sat Feb 8 13:14:12 CET 2014
Le 08/02/2014 02:21, samaelkreutz a écrit :
> :( nop, it doesn't work
>
> <http://mailinglists.scilab.org/file/n4028534/Captura_de_pantalla_2014-02-07_a_la%28s%29_22.18.25.png>
Yes, i did not pay attention to the management of files names in your
script.
How are numbered the names of your files?
Assuming that they are: export_5-20HZ_C1.txt, export_5-20HZ_C2.txt, etc,
then
for i=1:1:4//
DM = fscanfMat(msprintf("export_5-20HZ_C%d.txt",i));
figure(i);
plot(DM(:,7), DM(:,4), 'ro*', DM(:,7), DM(:,5), 'o')
end
should work, provided that files are set in the working directory (run
/pwd, dir/ to see it and them)
and are well formatted to be accepted by fscanfMat().
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140208/9ead3d40/attachment.htm>
More information about the users
mailing list