Main Content

size

(Not recommended) Size of triangulation matrix

size(TriRep) is not recommended. Use size(triangulation) instead.

TriRep is not recommended. Use triangulation instead.

Description

S = size(TR) provides size information for a triangulation matrix. The matrix is of size mtri-by-nv, where mtri is the number of simplices and nv is the number of vertices per simplex (triangle/tetrahedron, etc).

example

Examples

collapse all

Load a 2-D triangulation and create a TriRep object.

load trimesh2d
tr = TriRep(tri,x,y);

Find the size of the triangulation matrix.

s = size(tr)
s = 1×2

   182     3

Input Arguments

collapse all

Triangulation representation, specified as a TriRep or DelaunayTri object.

More About

collapse all

Simplex

A simplex is a triangle/tetrahedron or higher-dimensional equivalent.

Version History

Introduced in R2009a