I have a text file containing thousands of attributes (each column indicates an attribute) and a column that shows the labels of each row.All data is numeric except the last column which is the labels. This column is string. I want to use matlab classification functions such as gscatter() to classify the data. The problem is that when I use load filename in matlab to load my data I get this error (in which “no” is one of the lables)
Unknown text on line number 1 of ASCII file C:\Program Files\MATLAB\R2011b\train\train.txt
“no”.
In fact I do not know how to load my data in matlab to be able to use matlab functions to classify the data.
Here is an example
train.txt
myLoadScript.m
The result:
Should be easy to adapt to work on your specific file format…