MATLAB Function Reference
  Go to function:
    Search    Help Desk 
trisurf    Examples   See Also

Triangular surface plot

Syntax

Description

trisurf(Tri,X,Y,Z) displays triangles defined in the m-by-3 face matrix Tri as a surface. Each row of Tri defines a single triangular face by indexing into the vectors or matrices that contain the X, Y, and Z vertices.

trisurf(Tri,X,Y,Z,C) specifies color defined by C in the same manner as the surf function. MATLAB performs a linear transformation on this data to obtain colors from the current colormap.

trisurf(...'PropertyName',PropertyValue...) specifies additional Patch property names and values for the Patch graphics object created by the function.

h = trisurf(...) returns a Patch handle.

Example

Create vertex vectors and a face matrix, then create a triangular surface plot.

See Also

patch, surf, trimesh, delaunay



[ Previous | Help Desk | Next ]