MATLAB: For 3D, how to change the default Z axis orientation to out toward me and not up

3daxis orientation

This feature is available from FXgraph and most text books show the Z axis coming out toward you and the Y axis is pointing up? PLOT3 defaults to Z axis up.

Best Answer

Have you tried clicking and dragging the plot on the figure to the desired viewing angle?
Alternatively, you can try changing the order of the parameters, i.e., change:
plot3(x, y, z) % original input order
plot3(x, z, y) % alternate input order, will change axes positioning