Triangular surface plot
h = trisurf(...)
displays triangles defined in the m-by-3 face
Tri as a surface. Each row of
a single triangular face by indexing into the vectors or matrices
that contain the
The color is defined by the vector
color is proportional to surface height.
trisurf(TR) displays the triangles in a
triangulation representation. It uses
C = TR.Points(:,3) to
make sure the surface color is proportional to height.
specifies additional patch property names and values for the patch
graphics object created by the function.
h = trisurf(...) returns
a patch handle.
Create vertex vectors and a face matrix, then create a triangular surface plot.
[x,y] = meshgrid(1:15,1:15); tri = delaunay(x,y); z = peaks(15); trisurf(tri,x,y,z)
If the surface is in the form of a triangulation representation, you can pass it to
tr = triangulation(tri,x(:),y(:),z(:)); trisurf(tr)