Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
orion216
Posts:
11
From:
Netherlands
Registered:
9/24/07
|
|
Re: Mark point with number in image
Posted:
Jan 17, 2010 7:43 AM
|
|
"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <hiutff$7iq$1@fred.mathworks.com>... > 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.
Thanks to your great help. Cheers, Ken.
|
|
|
|