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!