MATLAB: Read numeric data with csvread

csvread

Hello,
I got a csv-file that looks like this.
* text here
* more text...
1,20,3,4
2,30,4,5
* text again
3,4,6,7
*text
And so it goes on.
How do I read the csv-file and only get the numeric data. Everything that has a "*" and text after should be disgarded.
Thank you.

Best Answer

doc textscan % NB: optional 'commentstyle' parameter