Analytic 2-D geometry description
NumEdges — Number of geometry edges
Number of geometry edges, specified as a positive integer.
NumFaces — Number of geometry faces
Number of geometry faces, specified as a positive integer. If your geometry is one
connected region, then
NumFaces = 1.
NumVertices — Number of geometry vertices
Number of geometry vertices, specified as a positive integer.
Vertices — Coordinates of geometry vertices
N-by-2 numeric matrix
Coordinates of geometry vertices, specified as an
N is the number of vertices.
Rectangle from Decomposed Solid Geometry
Create a decomposed solid geometry model representing a rectangle and include it in a PDE model.
Create a default scalar PDE model.
model = createpde;
Define a geometry representing a rectangle.
R1 = [3,4,-1,1,1,-1,0.5,0.5,-0.75,-0.75]';
Decompose the geometry into minimal regions.
g = decsg(R1);
Create the geometry from the decomposed geometry matrix.
Plot the geometry.
pdegplot(model,EdgeLabels="on") axis equal xlim([-1.1,1.1]) ylim([-0.9,0.6])
Introduced in R2015a