plot_number.m
function [] = plot_number(X,Y)
%plot_number 以绘制X,Y二维散点图并标出序号
scatter(X,Y,'r.')//绘制散点图
hold on
for i=1:max(size(X))
c = num2str(i-1);//数字转字符
text(X(i),Y(i),c);//在图上显示文字
end
hold off
end
plot_number.m
function [] = plot_number(X,Y)
%plot_number 以绘制X,Y二维散点图并标出序号
scatter(X,Y,'r.')//绘制散点图
hold on
for i=1:max(size(X))
c = num2str(i-1);//数字转字符
text(X(i),Y(i),c);//在图上显示文字
end
hold off
end