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

camtarget sets or queries the CameraTarget property of an axes.

Specifying a target switches CameraTargetMode to manual.

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