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

campos sets or queries the CameraPosition property of an axes.

Specifying a position switches CameraPositionMode to manual.

💡Examples
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camproj('perspective');
camtarget([0 0 0]);
campos([80 -120 90]);
camva(35);
🔗See Also
camtargetcamvacamprojview
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub