camup
Set or query the camera up vector.
📝Syntax
camup
u = camup
camup([x y z])
camup('auto')
camup('manual')
mode = camup('mode')
camup(ax, ...)
📥Input Arguments
Parameter Description
ax a scalar graphics object value: an axes.
[x y z] the camera up vector, specified as a three-element vector.
📤Output Arguments
Parameter Description
u the current camera up vector, a three-element vector.
📄Description

camup sets or queries the CameraUpVector property of an axes.

Specifying an up vector switches CameraUpVectorMode to manual.

💡Examples
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camup([0 0 1]);
u = camup()
🔗See Also
camposcamroll
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub