[scilab-Users] How to import a Matrix from a .txt file with Scilab 5.3 under Linux

Samuel Gougeon sgougeon at free.fr
Wed Aug 8 16:08:15 CEST 2012


Lines = mgetl("fichier.txt");
Lines(1:4)=[];
values = [];
for line = Lines'
     values = [values ; 
evstr(tokens(strsubst(strsubst(line,"cm",""),",","."))')]
end

should do it.


Le 07/08/2012 10:15, Jean-Baptiste DOUCET a écrit :
> .../...
> If you open this .txt file with wordpad, you see how it looks like.
> .../...
It is easier to process and help with an attached file rather than a 
copy/paste one.

Regards
Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120808/95dc381d/attachment.htm>


More information about the users mailing list