On 5/5/2013 3:17 AM, Gabriel wrote: > I have a file with entries like > 0, "150 145 2 55 13 54 ..." > There are 2304 numbers in quotes. And I have more than 22 000 of such entries. > So I need to read them from file one by one. > How can I do this? >
You can try using textscan, using '%d%s' format.
One you read the 2 fields, you can then break the second field (the string) into its parts using something like strread(). Like this