how do I get the names of the attributes?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kunal Roy
am 17 Sep. 2016
Bearbeitet: Walter Roberson
am 18 Sep. 2016
load iris.dat
iris(1,1)
gives me the first value of the first column
how do I access the name of the attribute?
0 Kommentare
Akzeptierte Antwort
mizuki
am 18 Sep. 2016
iris.dat in Fuzzy Logic Toolbox does not have class information (name of the attribute). So, you need to add class information by yourself like:
setosa = iris((iris(:,5)==1),:); % data for setosa
versicolor = iris((iris(:,5)==2),:); % data for versicolor
virginica = iris((iris(:,5)==3),:); % data for virginica
If you have Statistics and Machine Learning Toolbox, use fisheriris instead.
load fisheriris
A variable meas contains features and Species is class information.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu ANOVA finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!