How to draw a line from the variable y-axis
조회 수: 3 (최근 30일)
이전 댓글 표시
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
KSSV
2017년 11월 6일
YOu should have both (X,y_ in hand t plot. Or you have to plot w.r.t indices. YOur question is not clear.
채택된 답변
Image Analyst
2017년 11월 6일
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();
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!