camtarget
t = camtarget
camtarget([x y z])
camtarget('auto')
camtarget('manual')
mode = camtarget('mode')
camtarget(ax, ...)
| Parameter | Description |
|---|---|
| ax | a scalar graphics object value: an axes. |
| [x y z] | the camera target point, specified as a three-element vector. |
| Parameter | Description |
|---|---|
| t | the current camera target, a three-element vector. |
camtarget sets or queries the CameraTarget property of an axes.
Specifying a target switches CameraTargetMode to manual.
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camtarget([20 20 0]);
t = camtarget()
| Version | Description |
|---|---|
| 2.0.0 | initial version |