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: 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 ]

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$>...
> 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
Read Drawing Line of Figure
Read Re: Drawing Line of Figure

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.