Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Mark point with number in image
Replies: 2   Last Post: Jan 17, 2010 7:43 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 11
From: Netherlands
Registered: 9/24/07
Re: Mark point with number in image
Posted: Jan 17, 2010 7:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.