Back to Data Visualization
view
Set 3D view angle
Syntax
view(az, el) view([az el]) view(2) view(3) [az, el] = view
Description
Sets the camera viewing angle for 3D plots (mesh, surf). Azimuth is the angle of rotation around the z-axis measured from the negative y-axis (counterclockwise positive). Elevation is the angle from the x-y plane (-90 to 90 degrees). view(2) sets a top-down 2D view (az=0, el=90). view(3) sets the default 3D view (az=-37.5, el=30).
Parameters
| Name | Description |
|---|---|
| az(optional) | Azimuth angle in degrees |
| el(optional) | Elevation angle in degrees |
Returns
With no arguments, returns [az, el] of current view