reading a file line by line

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.

Howdy, Stranger!

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