可能重复: 如何操作我可以在MATLAB中编辑图像的轴以反转方向吗?
Possible Duplicate: How do I edit the axes of an image in MATLAB to reverse the direction?
在MatLab中,我有一对轴,其中y轴从(0,0)开始并计数到(0,100),并且该x轴上的刻度线分别变为0,1,2,...,100 .可以翻转它使其达到100,99,...,0 以使原点为(0,100)吗?有任何想法吗?我知道这是有可能的,因为我已经看过这样的图形图形.
In MatLab I have a pair of axes where the y-axis starts from (0,0) and counts up to (0,100) with tick marks on this x-axis going 0,1,2,...,100. Can a flip it so it goes 100,99,...,0 so the origin would be (0,100)? Any ideas? I know it's possible because I've seen graph figures like this.
推荐答案set(gca,'YDir','reverse');,然后再绘制图形.感谢gary comtois的链接-stackoverflow/questions/2865600/
set(gca,'YDir','reverse'); before you draw the graph. Thanks to gary comtois's link - stackoverflow/questions/2865600/
更多推荐
翻转轴刻度
发布评论