Multiply imline in one figure

2 views (last 30 days)
hu on 27 Oct 2013
Commented: hu on 27 Oct 2013
When I am using imline I only get the start and end point of the line(blue), is it possible to start another imline (in black) from the blue line middle (marked as red)?

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 27 Oct 2013
h1 = imline(gca,[10 100], [100 100]);
setColor(h1,[0 1 1]);
h2=imline(gca,[10+50 10+50], [100 200])
setColor(h2,[1 0 0]);
hu on 27 Oct 2013
Yes, that will be what I am looking for. Any idea will be welcome.

Sign in to comment.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!