Amr*_*mro 68
这是一种方法:
p = rand(10,2);
labels = cellstr( num2str([1:10]') ); %' # labels correspond to their order
plot(p(:,1), p(:,2), 'rx')
text(p(:,1), p(:,2), labels, 'VerticalAlignment','bottom', ...
'HorizontalAlignment','right')
Run Code Online (Sandbox Code Playgroud)