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