reading data with different number of columns

Peng Du eddy.pdu at gmail.com
Fri Sep 24 22:08:53 CEST 2010


Dear all,

How am I suppose to read a data file that does not have a unified length for
each entry? The file looks like:

01 02 03 04 05
01 02 03
01 02 03
01 02 03
01 02 03 04 05
01 02 03 04 05
01 02 03
01 02 03

I tried  [num_read, val(1),val(2),val(3),val(4),val(5)] = mfscanf(fid, "%d
%d %d %d %d"), but it didn't work.

Thanks very much.

Regards,

Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100924/9a21cf91/attachment.htm>


More information about the users mailing list