且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MATLAB中旋转图?

更新时间:2023-02-27 14:38:02

在绘制的图中,单击视图"->相机工具栏".使用滚动照相机"图标,该图标应允许您旋转绘图.

In the figure you have plotted, click 'View'->'Camera Toolbar'. Use the Roll Camera icon, and that should allow you to rotate your plot.

您还可以使用camroll功能以编程方式执行此操作

You can also use the camroll function to do this programatically

camroll(90)

请注意,这实际上是使摄像机沿顺时针方向旋转,而不是情节本身.因此,如果您想将绘图逆时针旋转90度,则需要将相机顺时针旋转90度.

Note, this actually rotates the camera looking at the plot clockwise, not the plot itself. So if you want to rotate the plot 90 degrees counter-clockwise, you will need to rotate the camera 90 degrees clockwise.