I am trying to read in some values from a file in an octave program (I suspect matlab is similar), but not sure how to do it.
I have input file in the form:
x y
A B C
a_11 ... a_1n
a_21 .. a_2n
...
a_m1 ... a_mn
Where x,y are doubles, A, B, C are integers, and a_11…a_mn is a matrix.
I saw examples of how to read in just the matrix, but how can I read mixed stuff like this?
In my opinion this is not a good way of storing data. But octave offers the functionality to read this as well with dlmread:
If you have this text file test.csv:
You can read in your data like this: