How to draw a line from the variable y-axis
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Martin Olafsen
am 6 Nov. 2017
Kommentiert: Martin Olafsen
am 6 Nov. 2017
Hi
I am making a 2D plot. The x-axis is located at y = 0, but I do not know the position of the y-axis, it depends on the results. Is there a way to find the x position of the y-axis? (I do not want a fixed location of the y-axis, as it should depend on the results.)
Regards
2 Kommentare
KSSV
am 6 Nov. 2017
YOu should have both (X,y_ in hand t plot. Or you have to plot w.r.t indices. YOur question is not clear.
Akzeptierte Antwort
Image Analyst
am 6 Nov. 2017
You can use xlim() and ylim() to determine the limits of the axes that MATLAB used and drew on your graph
xLimits = xlim();
yLimits = ylim();
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots 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!