I have a csv file where each column is a different test result, and each line is a different simulation. It looks something like this:
(test 1) (test 2) (test 3) (test 4) (test 5)
(simulation 1) 3 , 4 , 6 , 7 , 8
(simulation 2) 9 , 4 , 7 , 10 , 7
Note that the text in the brackets is not in the cvs file.
I want to import this data into Matlab the same way its organized in the text file, but the resulted matrix has 3 columns and as many line as needed.
Why is that? How do I fix it?
Also, some of the numbers are imported as NaN, how do I solve it?
Thanks!
If you have a CSV file like:
To read the entire file, use
myMatrix =