翻转轴刻度

编程入门 行业动态 更新时间:2024-10-08 04:31:05
本文介绍了翻转轴刻度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

可能重复: 如何操作我可以在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/

更多推荐

翻转轴刻度

本文发布于:2023-07-19 13:42:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1157075.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转轴   刻度

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!