如题所述
x=rand(1,10)*10;
y=rand(1,10)*10;
figure,plot(x,y,'r*');
for ii=1:length(x)
text(x(ii)+0.2,y(ii)+0.2,[num2str(x(ii)),' ',num2str(y(ii))]);
end