As a part of my assignment, I have to read a .csv file. The file contains a mixture of text, numeric data and missing data under the columns: Number, Title, Description (>100 words, variable length), Location, Time, Term, Company, Category, Source.
There are more than 0.5 million rows.
Suggest me a command to read this file into MATLAB.
I have already tried the following:
uiopen('filename.csv',1)
It gives error: Use textscan to read more complex formats. Then I tried:
data =textscan('filename.csv','%f %s %s %s %s %s %s %s %s %f','HeaderLines', 1, 'Delimiter', ',');
This command runs to completion, but it only gives an array (1X10) of cells (which are empty). Hence, I am not getting what I want.
I also tried textread command but it gives error.