原帖由 heaventian 于 2007-1-30 22:59 发表
请问如何在MATLAB中,使得让坐标轴以大数开始,以小数结束。比如Z周上面为0,下面为10
楼上的提示是界面实现,下面是程序实现的介绍:
-
- XDir, YDir, ZDir {normal} | reverse
-
- Direction of increasing values. A mode controlling the direction of increasing axis values. Axes form a right-hand coordinate system. By default, x-axis values increase from left to right. To reverse the direction of increasing x values, set this property to reverse.
- set(gca,'XDir','reverse')
- y-axis values increase from bottom to top (2-D view) or front to back (3-D view). To reverse the direction of increasing y values, set this property to reverse.
- set(gca,'YDir','reverse')
- z-axis values increase pointing out of the screen (2-D view) or from bottom to top (3-D view). To reverse the direction of increasing z values, set this property to reverse.
- set(gca,'ZDir','reverse')
复制代码 |