"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <firstname.lastname@example.org>... > Dear Hiep! > > > I would like to mark the end of the lines with numbers for visual inspection to debug my algo, instead of default marking provided my Matlab (x,o,-...) in the 'plot' function. > > text(x, y, sprintf('%d', Number), 'Units', 'data') > > 'data' are the default units, so actually you have to specify the units only on demand. > The properties 'HorizontalAlignment' and 'VerticalAlignment' help to set the number beside (not on) the points. > > Good luck, Jan
Thanks a lot, Jan! 'Text' is exactly the command I am looking for.