how to plot Svm classifier for this database (2-classes) ??
Show older comments
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;

Answers (0)
Categories
Find more on Classification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!