Make the x-axis limit depend on the function y
이전 댓글 표시
Hi,
I'd like the maximum value of the x-axis to be at the point y=0.9 (graph is from 0 to 1 on the y-axis).
When I change the inputs in my function file, I want the x-axis to automatically stop when the line passes the theoretical y=0.9 line because the curve becomes asymptotic (to y=1) and makes the important bit hard to see.
Thanks.
채택된 답변
추가 답변 (1개)
Get the respective of x at y = 0.9..say it is xval..then use axis([0 xval 0 1]) after plotting
카테고리
도움말 센터 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!