[Scilab-users] Loading multiple text files

Paul CARRICO paul.carrico at free.fr
Sat Feb 8 09:06:23 CET 2014


Note the "plot" line has been cut in 2 ones by outlook !!!!

-----Message d'origine-----
De : users [mailto:users-bounces at lists.scilab.org] De la part de Paul
CARRICO
Envoyé : samedi 8 février 2014 08:53
À : 'International users mailing list for Scilab.'
Objet : Re: [Scilab-users] Loading multiple text files

I haven't tested specifically your example, but I would use something like :

for i=1:1:4
str1 = "...
DM("+ string(i) +")=fscanfMat(''export_5-20HZ_C("+ string(i) +").txt''),...
    figure("+ string(i) +"),...
    plot(DM("+ string(i) +")(:,7),DM("+ string(i) +")(:,4),''ro*'',DM("+
string(i) +")(:,7),DM("+ string(i) +")(:,5),''o''),...    
       ";
execstr(str1) ;
end


Paul

-----Message d'origine-----
De : users [mailto:users-bounces at lists.scilab.org] De la part de
samaelkreutz Envoyé : vendredi 7 février 2014 23:40 À :
users at lists.scilab.org Objet : [Scilab-users] Loading multiple text files

Hello, I'm newbie in scilab... 

I have one folder
/Users/konstantina/Desktop/CHECK/export_5-20/export_5-20HZ_C*.txt

where *  takes the values= 1:1:5

I need open each text file and make a plot. So, I was thinking in something
like  

for i=1:1:4//
DM(i)=fscanfMat('export_5-20HZ_C(i).txt')
    figure(i)
    plot(DM(i)(:,7),DM(i)(:,4),'ro*',DM(i)(:,7),DM(i)(:,5),'o')    
end

but is obvious that it doesn't work, hehehe.
Please, please any suggestions!!! Ill be very thankful

:)

Best wishes!!!




--
View this message in context:
http://mailinglists.scilab.org/Loading-multiple-text-files-tp4028528.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant
parce que la protection avast! Antivirus est active.
http://www.avast.com

_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.com




More information about the users mailing list