view(az, el)
view([az, el])
view([x, y, z])
view(dim)
view(ax, ...)
[az, el] = view(...)
| Parameter | Description |
|---|---|
| dim | Dimensions: 2 equivalent to view(0, 90) or 3 equivalent to view(-37.5, 30). |
| az | Azimuth: scalar |
| el | Elevation: scalar |
| ax | a scalar graphics object value: parent container, specified as a axes. |
view sets the view into a plot.
f = figure();
[X,Y] = meshgrid(-6:.5:6);
Z = Y .* sin(X) - X .* cos(Y);
surf(X, Y, Z)
f = figure();
[X,Y] = meshgrid(-6:.5:6);
Z = Y .* sin(X) - X .* cos(Y);
surf(X, Y, Z)
view(90, 0)
f = figure();
[X,Y] = meshgrid(-6:.5:6);
Z = Y .* sin(X) - X .* cos(Y);
surf(X, Y, Z)
view(2)
| Version | Description |
|---|---|
| 1.0.0 | initial version |
| 1.2.0 | azimuth and elevation as output arguments. |