campos
pos = campos
campos([x y z])
campos('auto')
campos('manual')
mode = campos('mode')
campos(ax, ...)
| Parameter | Description |
|---|---|
| ax | a scalar graphics object value: an axes. |
| [x y z] | the camera position, specified as a three-element vector. |
| Parameter | Description |
|---|---|
| pos | the current camera position, a three-element vector. |
campos sets or queries the CameraPosition property of an axes.
Specifying a position switches CameraPositionMode to manual.
f = figure();
surf(peaks(40), 'EdgeColor', 'none');
camproj('perspective');
camtarget([0 0 0]);
campos([80 -120 90]);
camva(35);
| Version | Description |
|---|---|
| 2.0.0 | initial version |