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;

回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!