view
Camera line of sigh.
📝Syntax
view(az, el)
view([az, el])
view([x, y, z])
view(dim)
view(ax, ...)
[az, el] = view(...)
📥Input Arguments
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.
📄Description

view sets the view into a plot.

💡Examples
f = figure();
[X,Y] = meshgrid(-6:.5:6);
Z = Y .* sin(X) - X .* cos(Y);
surf(X, Y, Z)
Example illustration
f = figure();
[X,Y] = meshgrid(-6:.5:6);
Z = Y .* sin(X) - X .* cos(Y);
surf(X, Y, Z)
view(90, 0)
Example illustration
f = figure();
[X,Y] = meshgrid(-6:.5:6);
Z = Y .* sin(X) - X .* cos(Y);
surf(X, Y, Z)
view(2)
Example illustration
🔗See Also
axes
🕔Version History
Version Description
1.0.0 initial version
1.2.0 azimuth and elevation as output arguments.
Edit this page on GitHub