Ответ 1
Вот один из способов сделать это:
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')