how to plot Svm classifier for this database (2-classes) ??

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)

Asked:

on 4 Apr 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!