MATLAB: How to plot mixed data types of a csv file

csvplottingreadtable

I'm working on a .csv file that contains one column of mixed data types , the coulmn looks something like:
,"Admit","Gender","Dept","Freq"
1,"Admitted","Male","A",512
2,"Rejected","Male","A",313
How can I read the data from the file and plot them in a reasonable way to determine appropriate features for a classification problem ?
I've tried to use txt2str , csvread , and textscan functions beside some file format conversion functions as well (xlsread ,[num,txt,raw] ) and non of them worked with my data!!
Any good suggestions would be appreciated .

Best Answer

You should use the new readtable() function, available in R2013b and later. It can handle different data types. It goes like
t = readtable(fullFileName);
If you want to separate the values, you can do that:
Admit = t.Admit;
Gender = t.Gender;
and so on.
Related Question