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: Drawing Line of Figure
Replies: 1   Last Post: Jun 25, 2012 12:28 PM

Advanced Search

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

Posts: 11
Registered: 6/14/12
Re: Drawing Line of Figure
Posted: Jun 25, 2012 12:28 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Myles" wrote in message <js2lcr$c8i$1@newscl01ah.mathworks.com>...
> I was curious if anyone had a link to a FEX to what I'm pretty sure is a common query.
> I have a figure which I would like to draw a line on - I pick two points using ginput, and using those those two points I create a line through them which stretches across the entire figure.
> This portion works perfectly, but what I need is some way to show a 'temporary' line after picking the first point. Right now I'm creating my line almost blindly based on a few landmarks, but it's difficult to remember where the first point has been placed and a 'guide' or 'temporary line' would be ideal to have after choosing the first point.
>
> I appreciate the help, I haven't been able to find anything worthwhile through google searches and browsing through the FEX.


Nevermind, MATLAB has a built in function which just needs to be edited slightly:

function draw_lines


Date Subject Author
6/22/12
Read Drawing Line of Figure
Myles
6/25/12
Read Re: Drawing Line of Figure
Myles

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

[Privacy Policy] [Terms of Use]

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