How to label each point in MatLab plot?

How to label each data point in a MatLab plot, like the following figure? MatLab code: x = ; y = x + rand(1,10); figure('color','w'); plot(x,y,'o'); a = '; b = num2str(a); c = cellstr(b); dx = 0.1; dy = 0.1; text(x+dx, y+dy, c); It also w
Xu Cui
18 sec read