更新时间:2023-02-09 19:51:23
您可以使用相机控制功能,在这种情况下为 camroll
:
You can achieve these sorts of views using camera control functions, in this case camorbit
and camroll
:
[X, Y, Z] = peaks();
hAxes = gca;
surf(hAxes, X, Y, Z);
xlabel('x');
ylabel('y');
zlabel('z');
camorbit(-90, 0);
camroll(hAxes, -111);
请注意,正数x指向上方和右侧,正数z指向下方并右侧,而正y指向上方.
Notice that positive x is pointing up and to the right, positive z is pointing down and to the right, and positive y is pointing up.
我已经在MATLAB中完成了许多3D可视化,并整理了一些我通常使用鼠标来操纵视图的工具.我在 MathWorks文件交换上发布了一个名为我提交的演示中的一个演示是一个示例,该示例说明了如何创建基于鼠标的视图操作(旋转,移动和缩放).
I've done a lot of 3D visualization in MATLAB, and have put together some tools I routinely use for manipulating the view with the mouse. I posted one such tool on the MathWorks File Exchange called MouseManager
. One of the demos I included in the submission is an example for how to create mouse-based manipulation of the view (rotating, dollying, and zooming).