📄 plotdata2.m
字号:
function plotdata2(X, Y)
%function plotdata2(X, Y, x1ran, x2ran)
% PLOTDATA - Plot 2D data set
%
hold on;
%X=X';Y=Y';
ind = find(Y==1);
plot(X(ind,1), X(ind,2), 'ks');
%plot(X(1,ind), X(2,ind), 'ks');
ind = find(Y==-1);
plot(X(ind,1), X(ind,2), 'bo');
%plot(X(1,ind), X(2,ind), 'kx');
%text(X(:,1)+.2,X(:,2), int2str([1:length(Y)]'));
%text(X(1,:)+.2,X(2,:), int2str([1:length(Y)]'));
%axis([x1ran x2ran]);
axis xy;
%X=X';Y=Y';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -