how to plot Svm classifier for this database (2-classes) ??
Afficher commentaires plus anciens
X=[1 1 ;2 2;3 3;4 4;5 5;6 6;7 7;8 8;9 9;10 10];
T=[+1;+1;+1;+1;+1;-1;-1;-1;-1;-1];
hold all
for i=1:10
if T(i)==+1
plot(X(i,1),X(i,2),'+')
end
if T(i)==-1
plot(X(i,1),X(i,2),'o')
end
end;

Réponses (0)
Catégories
En savoir plus sur Classification dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!