csvread text column

9 views (last 30 days)
SpartanG72
SpartanG72 on 19 May 2012
I have a csv file with a text header and one column that has text on the far right
data = csvread('test.csv',1,0,[1 0 100 6])
eg the column containing text is column 7 i tired to stop Matlab reading the text column using the range specifier but it does not work, matlab function keeps trying to read the column containing text...
i wish it would just ignore the function...

Answers (1)

per isakson
per isakson on 19 May 2012
Doc says: ... csvread ... The file can only contain numeric values.
Try: textscan

Categories

Find more on Data Import and Export 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!