pdepoly
Draw polygon in PDE Modeler app
Description
pdepoly( draws
                a polygon with the corner coordinates (vertices) defined by X,Y)X
                and Y. The pdepoly command opens the PDE
                Modeler app with the specified polygon drawn in it. If the app is already open,
                    pdepoly adds the specified polygon to the app window without
                deleting any existing shapes.
pdepoly updates the state of the geometry description matrix
                inside the PDE Modeler app to include the polygon. You can export the geometry
                description matrix from the PDE Modeler app to the MATLAB® Workspace by selecting
                    DrawExport Geometry Description, Set
                    Formula, Labels.... For details on the format of the geometry
                description matrix, see decsg.
Examples
Input Arguments
Tips
- pdepolyopens the PDE Modeler app and draws a polygon. If, instead, you want to draw polygons in a MATLAB figure, use the- plotfunction, for example:- x = [-1,-0.5,-0.5,0,1.5,-0.5,-1]; y = [-1,-1,-0.5,0,0.5,0.9,-1]; plot(x,y,'.-') 
Version History
Introduced before R2006a
See Also
pdecirc | pdeellip | pderect | PDE
                Modeler
![Figure PDE Modeler - [Untitled] contains objects of type uimenu, uigridlayout.](../../examples/pde/win64/DrawPolygonInPDEModelerAppExample_01.png)
![Figure PDE Modeler - [Untitled] contains objects of type uimenu, uigridlayout.](../../examples/pde/win64/AssignNameToPolygonInPDEModelerAppExample_01.png)