how to start graph in matlab from the origin?
조회 수: 18 (최근 30일)
이전 댓글 표시
Engineer Batoor khan mummand
2020년 10월 26일
댓글: Engineer Batoor khan mummand
2020년 10월 27일
hi all:
i want to start my graph from origin not from other point if you see ploting graph is started from another point and at the end we can ntot see graph so i want to start graph from origin .
thanks
댓글 수: 0
채택된 답변
Image Analyst
2020년 10월 26일
You're doing something like calling xticks() or xticklabels() with only two values. Please show us all the code involved in creating your graph. You need to be doing something like
xticks([0, max(x)]);
instead of whatever you're doing.
추가 답변 (1개)
drummer
2020년 10월 26일
xlim[yourInitialRange, yourEndRange]
% Specifically
xlim[0, 100]; % check if it works.
% Cheers
댓글 수: 1
drummer
2020년 10월 26일
Actually, I noticed the right side in your graph.
You want your graphic to start at 0 from the left, or in the middle and goes negative to the left and positive to the right?
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!