clear all;clc;
a=csvread('hrvct.csv');
a=[a(:,1:end-1),a(:,end)];
[atr,ate] = holdout( a,53);
Xte=ate(:,1:end-1);Yte=ate(:,end);
Xtr=atr(:,1:end-1);Ytr=atr(:,end);
fm_=[];
figure
hold on
X=[Xtr;Xte];Y=[Ytr;Yte];
scatter(X(Y==1,1),X(Y==1,2),'*g')
scatter(X(Y==-1,1),X(Y==-1,2),'*r')
hold off
5 Comments
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159248
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159248
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159253
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159253
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159263
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159263
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159313
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159313
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159328
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/661568-about-the-scatter-plot#comment_1159328
Sign in to comment.