坐标变换!
在matlab中如何将坐标轴的方向改变,比如x轴方向不变(默认的向右),y轴方向向下,该如何完成???谢谢!!! 原帖由 simple1 于 2007-4-6 22:05 发表
在matlab中如何将坐标轴的方向改变,比如x轴方向不变(默认的向右),y轴方向向下,该如何完成???
谢谢!!!
建议自己多动手,这个问题查找一下关于axes的属性就找到答案了:
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')
XAxisLocation top | {bottom}
Location of x-axis tick marks and labels. This property controls where MATLAB displays the x-axis tick marks and labels. Setting this property to top moves the x-axis to the top of the plot from its default position at the bottom. YAxisLocation right | {left}
Location of y-axis tick marks and labels. This property controls where MATLAB displays the y-axis tick marks and labels. Setting this property to right moves the y-axis to the right side of the plot from its default position on the left side. See the plotyy function for a simple way to use two y-axes. 谢谢eight!
谢谢!!!!!!!!!!
[ 本帖最后由 eight 于 2007-4-7 15:56 编辑 ]
页:
[1]