MATLAB: How to change the type of points for a plot

plot

Hello,
I have a plot with different points (corresponding to different trials) and I would like to modify the type of points in my plot.
I would like to put the number of each row of my table instead of a cross or a dot.
How can I do this kind of thing?
Thank you in advance.

Best Answer

This should get you started:
x = 1:10; % Create Data

y = rand(size(x)); % Create Data
figure
plot(x, y, '.', 'Color','none') % Plot Colourless Dots
grid
datalbl = compose('%d',x); % Create Point Labels
text(x, y, datalbl, 'HorizontalAlignment','center', 'VerticalAlignment','middle') % ‘Plot’ Point Labels
.