Documentation

triplot

2-D triangular plot

Note

The behavior ofh = triplot(...)has changed. The new behavior returns a single chart line handle.

Syntax

triplot(TRI,x,y)
triplot(TRI,x,y,color)
triplot(TR)
h = triplot(...)
triplot(...,'param',value,'param',value...)

Description

triplot(TRI,x,y)displays the triangles defined in them3矩阵TRI. A row ofTRIcontains indices into the vectorsxandythat define a single triangle. The default line color is blue.

triplot(TRI,x,y,color)specifiescoloras the line color.colorcan also be a line specification. SeeColorSpecfor a list of valid colors. SeeLineSpecfor information about line specifications.

triplot(TR)displays the triangles in a triangulation representation.

h = triplot(...)returns a single chart line handle to the displayed triangles.

triplot(...,'param',value,'param',value...)allows additional line property name/property value pairs to be used when creating the plot. SeeLine Propertiesfor information about the available properties.

Examples

collapse all

Plot a Delaunay triangulation for 10 randomly generated points.

P =画廊('uniformdata',10,2,2); DT = delaunayTriangulation(P); triplot(DT)

Introduced before R2006a

Was this topic helpful?