I have a csv file like this format:
2.3 , 1.3 , 1.2 , 6.8 , classone
1.2 , 2.6 , 1.8 , 0.7 , classtwo
I want to read the file into seprate matrix; the first 4 numeric values in one matrix and the string value in another matrix
I have tried textscan function but it doesnt work well
M= textread('training.dat','%f %f %f %f %s');
Error using dataread
Number of outputs must match the number of unskipped
input fields.