したのコードにあるように、3列にすればできます。
分離平面の例としては、下のようなものがありました。一度試してみてください。
load fisheriris
X = meas(:,1:3);
y = ones(size(X,1),1);
SVMModel = fitcsvm(X,y,'KernelScale','auto','Standardize',true,...
'OutlierFraction',0.05);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!