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 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
