Multiply imline in one figure

Hi,
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)?
Thanks

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 27 Okt. 2013

0 Stimmen

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]);

3 Kommentare

hu
hu am 27 Okt. 2013
Thanks. I am looking for an interactive solution.
What I mean is that I draw the first line (size and angle differ), than the 2nd line will start from the 1st line middle.
Azzi Abdelmalek
Azzi Abdelmalek am 27 Okt. 2013
You mean like Autocad do. I don't know if it's possible
hu
hu am 27 Okt. 2013
Yes, that will be what I am looking for. Any idea will be welcome.

Melden Sie sich an, um zu kommentieren.

Tags

Gefragt:

hu
am 27 Okt. 2013

Kommentiert:

hu
am 27 Okt. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by