[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:12:45 CEST 2012
Le 08/08/2012 16:08, Samuel Gougeon a écrit :
> Lines = mgetl("fichier.txt");
> Lines(1:4)=[];
> values = [];
> for line = Lines'
> values = [values ;
> evstr(tokens(strsubst(strsubst(line,"cm",""),",","."))')]
> end
Just append a semi-column to cancel intermediate displays:
values = [values ;
evstr(tokens(strsubst(strsubst(line,"cm",""),",","."))')];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120808/dfad1eec/attachment.htm>
More information about the users
mailing list