reading a file line by line - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

reading a file line by line

mahmoodnmahmoodn Posts: 1Member
I have a very hard problem with matlab. I want to read a file line by line and paste each line in to an array. How it is possible? Something like getline in c++. For example the file contains:

1 3 6 4 4 3 1
8 7 4 9 10 2 4 3 1 5 7 8
6 2 4

the load command is not applicable because is says columns are not same. What should I do then? any idea?
Sign In or Register to comment.