How to assign a reference point in graph?
이전 댓글 표시
how to assign reference point(0,0) at left top corner like following figure?

채택된 답변
추가 답변 (2개)
Muhammad Usman Saleem
2016년 4월 6일
편집: Muhammad Usman Saleem
2016년 4월 6일
UPDATE 1:
may try this
plot(1:10)
box off
axes('xlim', [1 10], 'ylim', [1 10], 'color', 'none', 'YAxisLocation', 'right', 'XAxisLocation', 'top')
or may try this
t=0:0.1:10;
y=sin(t);
plot(t,y)
set(gca,'XAxisLocation','top','YAxisLocation','left','ydir','reverse');
댓글 수: 3
LAKSHMANAN ADAIKKAPPAN
2016년 4월 6일
Walter Roberson
2016년 4월 6일
No, the key is YDir reverse
LAKSHMANAN ADAIKKAPPAN
2016년 4월 6일
편집: LAKSHMANAN ADAIKKAPPAN
2016년 4월 6일
Steven Lord
2016년 4월 6일
plot(1:10, 1:10);
axis ij
Or if you have the handle of your axes object already, change its YDir property to 'reverse' as Walter showed.
카테고리
도움말 센터 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
