Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Myles
Posts:
11
Registered:
6/14/12
|
|
Re: Drawing Line of Figure
Posted:
Jun 25, 2012 12:28 PM
|
|
"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
|
|
|
|