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.

mesh, meshc, meshzPurpose2mesh, meshc, meshzMesh plotsSyntaxmesh(X,Y,Z)mesh(Z)mesh(...,C)meshc(...)meshz(...)h = mesh(...)h = meshc(...)h = meshz(...)Description mesh, meshc, and meshz create wireframe parametric surfaces specified by X, Y,and Z, with color specified by C.mesh(X,Y,Z) draws a wireframe mesh with color determined by Z, so color isproportional to surface height. If X and Y are vectors, length(X) = n andlength(Y) = m, where [m,n] = size(Z). In this case, ( X( j) , Y()Zi i , ( , j))are the intersections of the wireframe grid lines; X and Y correspond to thecolumns and rows of Z, respectively. If X and Y are matrices,( X( i,j) , Y( i,j) , Zi ( , j)) are the intersections of the wireframe grid lines.mesh(Z) draws a wireframe mesh using X = 1:n and Y = 1:m, where [m,n] =size(Z). The height, Z, is a single-valued function defined over a rectangulargrid. Color is proportional to surface height.mesh(...,C) draws a wireframe mesh with color determined by matrix C.<strong>MATLAB</strong> performs a linear transformation on the data in C to obtain colorsfrom the current colormap. If X, Y, and Z are matrices, they must be the samesize as C.meshc(...) draws a contour plot beneath the mesh.meshz(...) draws a curtain plot (i.e., a reference plane) around the mesh.h = mesh(...), h = meshc(...), and h = meshz(...) return a handle to asurface graphics object.RemarksA mesh is drawn as a surface graphics object with the viewpoint specified byview(3). The face color is the same as the background color (to simulate a2-298

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

Saved successfully!

Ooh no, something went wrong!