<< validatecolor | Graphics functions | viridis >> |
view(az, el) |
view([az, el]) |
view([x, y, z]) |
view(dim) |
view(ax, ...) |
[az, el] = view(...) |
Dimensions: 2 equivalent to view(0, 90) or 3 equivalent to view(-37.5, 30).
Azimuth: scalar
Elevation: scalar
a scalar graphics object value: parent container, specified as a axes.
viewsets 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)
axes.
Version | Description |
---|---|
1.0.0 | initial version |
1.2.0 | azimuth and elevation as output arguments. |
Allan CORNET