reading text number combination with comma delimiter

3 views (last 30 days)
I'm trying to read a file containing sth like
xxx:, 0.1, 3.2, 2.2
xxx:, 0.3, 2.0, 3.0
dlmread(filename0,'',0,1); skips the first column but still reads in the comma.
How can I input the numbers only? thanks!

Accepted Answer

Hyperbolic
Hyperbolic on 12 Oct 2014
solved, just for reference the following works
textscan(fileID,'%s %f %f %f\n','delimiter',',')

More Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!