<meta http-equiv="content-type" content="text/html; charset=utf-8">Many thanks Celso - how can I put the fields of each line in the vectors like I did with mscanf?<div><br></div><div>Best,</div><div><br></div><div>Peng<br>

<br><div class="gmail_quote">On 25 September 2010 04:08, Celso Co <span dir="ltr"><<a href="http://celso.co">celso.co</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Dear Peng,<br>
<br>
You can read it as text file. In attached file, run "read.sci" to read<br>
"text.sce".<br>
<br>
Regards<br>
cco<br>
<div><div></div><div class="h5"><br>
On Sat, Sep 25, 2010 at 4:08 AM, Peng Du <<a href="mailto:eddy.pdu@gmail.com">eddy.pdu@gmail.com</a>> wrote:<br>
> Dear all,<br>
> How am I suppose to read a data file that does not have a unified length for<br>
> each entry? The file looks like:<br>
> 01 02 03 04 05<br>
> 01 02 03<br>
> 01 02 03<br>
> 01 02 03<br>
> 01 02 03 04 05<br>
> 01 02 03 04 05<br>
> 01 02 03<br>
> 01 02 03<br>
> I tried  [num_read, val(1),val(2),val(3),val(4),val(5)] = mfscanf(fid, "%d<br>
> %d %d %d %d"), but it didn't work.<br>
> Thanks very much.<br>
> Regards,<br>
> Peng<br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Eng'r Celso B. Co, PhD ECE<br>
Assistant Professor<br>
Dept. of Electronics, Computer, and Communication Engineering,<br>
Loyola Schools of Science and Engineering, Ateneo De Manila<br>
</font></blockquote></div><br></div>