How To Change The View Point Of A Surf Plot In Matlba
Viewpoint specification
Syntax
-
view(az,el) view([az,el]) view([x,y,z]) view(2) view(3) view(T) [az,el] = view T = view
Description
The position of the viewer (the viewpoint) determines the orientation of the axes. You specify the viewpoint in terms of azimuth and elevation, or by a point in three-dimensional infinite.
view(az,el) and view([az,el])
ready the viewing bending for a three-dimensional plot. The azimuth, az
, is the horizontal rotation virtually the z-axis as measured in degrees from the negative y-axis. Positive values bespeak counterclockwise rotation of the viewpoint. el
is the vertical peak of the viewpoint in degrees. Positive values of height correspond to moving to a higher place the object; negative values correspond to moving below the object.
view([x,y,z])
sets the viewpoint to the Cartesian coordinates x
, y
, and z
. The magnitude of (x,y,z)
is ignored.
view(2)
sets the default two-dimensional view, az = 0,
el = xc
.
view(iii)
sets the default three-dimensional view, az = -37.5,
el = 30
.
view(T)
sets the view according to the transformation matrix T
, which is a iv-by-4 matrix such equally a perspective transformation generated by viewmtx
.
[az,el] = view
returns the electric current azimuth and superlative.
T = view
returns the current 4-past-4 transformation matrix.
Remarks
Azimuth is a polar angle in the ten - y plane, with positive angles indicating counterclockwise rotation of the viewpoint. Pinnacle is the angle above (positive angle) or beneath (negative angle) the x - y plane.
This diagram illustrates the coordinate arrangement. The arrows indicate positive directions.
Examples
View the object from directly overhead.
-
az = 0; el = xc; view(az, el);
Set the view along the y -axis, with the x -centrality extending horizontally and the z -axis extending vertically in the figure.
-
view([0 0]);
Rotate the view about the z -axis by 180ยบ.
-
az = 180; el = 90; view(az, el);
Meet Also
viewmtx
, hgtransform
, rotate3d
Controlling the Photographic camera Viewpoint for related functions
Axes graphics object backdrop CameraPosition
, CameraTarget
, CameraViewAngle
, Projection
Defining the View for more information on viewing concepts and techniques
Transforming Objects for information on moving and scaling objects in groups.
vertcat | viewmtx |
© 1994-2005 The MathWorks, Inc.
Source: http://matlab.izmiran.ru/help/techdoc/ref/view.html
Posted by: kelsohishadinin.blogspot.com
0 Response to "How To Change The View Point Of A Surf Plot In Matlba"
Post a Comment