[Scilab-users] Reading a matrix - variable number of lines, columns
SCHULZ Wolfgang
W.Schulz at ove.at
Thu Aug 22 08:02:21 CEST 2013
Hello,
thanks for the hint. I solved it with the following code:
Stroke_count=zeros(nlat,nlon);
for i=1:nlat
line=mgetl(fid,1);
Stroke_count(i,:)=strtod(tokens(line))';
end
Wolfgang
> -----Ursprüngliche Nachricht-----
> Von: users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] Im
> Auftrag von Stanislav
> Gesendet: Mittwoch, 21. August 2013 17:40
> An: users at lists.scilab.org
> Betreff: Re: [Scilab-users] Reading a matrix - variable number of lines, columns
>
> Hi.
>
> I do not understand what do you want to get: one matrix of three?
> Here is script to get one matrix.
>
> read_matrix.sce
> <http://mailinglists.scilab.org/file/n4027265/read_matrix.sce>
>
> 'test.txt' is your text file.
>
> Stanislav.
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/Scilab-users-
> Reading-a-matrix-variable-number-of-lines-columns-tp4027264p4027265.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
More information about the users
mailing list