How to link two given points and add isolines to a plot?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Genhou SUN
am 10 Jul. 2019
Kommentiert: Genhou SUN
am 10 Jul. 2019
Hi, everyone. I need some help to draw a plot with differnt kinds of lines. A case of the plot can be seen in the figure. It is very easy to draw the red, blue and green soild lines. However , I do not know how to draw the red, blue and green dash lines when I already know the starting and ending coordinations of these dash lines? If possible, Could anyone tell me how to draw the other two black dash lines. The two black dash lines are isolines and their values can be given freely.
1 Kommentar
Akzeptierte Antwort
KSSV
am 10 Jul. 2019
It looks like you have three curves i.e three different set of (x,y) arrays corresponding to Red, Blue and Green. Also you three points (xx,yy) corresponding to R, B and G.
hold on
plot([xx x(1)],[yy y(1)],'--k')
plot([xx x(end)],[yy y(end)],'--k')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!