The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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" <> wrote in message <hiutff$7iq$>...
> 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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.