12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

viewPurpose2viewViewpoint specificationSyntaxview(az,el)view([az,el])view([x,y,z])view(2)view(3)view(T)[az,el] = viewT = viewDescriptionThe position of the viewer (the viewpoint) determines the orientation of theaxes. You specify the viewpoint in terms of azimuth and elevation, or by a pointin three-dimensional space.view(az,el) and view([az,el]) set the viewing angle for a three-dimensionalplot. The azimuth, az, is the horizontal rotation about the z-axis as measuredin degrees from the negative y-axis. Positive values indicate counterclockwiserotation of the viewpoint. el is the vertical elevation of the viewpoint indegrees. Positive values of elevation correspond to moving above 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. Themagnitude of (x,y,z) is ignored.view(2) sets the default two-dimensional view, az = 0, el = 90.view(3) sets the default three-dimensional view, az = —37.5, el = 30.view(T) sets the view according to the transformation matrix T, which is a4-by-4 matrix such as a perspective transformation generated by viewmtx.[az,el] = view returns the current azimuth and elevation.T = view returns the current 4-by-4 transformation matrix.2-575

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!