Partial Differential Equation Toolbox |

pderect

Draw rectangle

Syntax

-     pderect(xy)
      pderect(xy,label)

Description

`pderect(xy)` draws a rectangle with corner coordinates defined by `xy=[xmin xmax ymin ymax]`. If the `pdetool` GUI is not active, it is automatically started, and the rectangle is drawn in an empty geometry model.

The optional argument `label` assigns a name to the rectangle (otherwise a default name is chosen).

The state of the Geometry Description matrix inside `pdetool` is updated to include the rectangle. You can export the Geometry Description matrix from `pdetool` by selecting the Export Geometry Description . . . option from the Draw menu. For details on the format of the Geometry Description matrix, see `decsg`.

Examples

The command sequence below starts `pdetool` and draws the L-shaped membrane as the union of three squares.

-     pderect([-1 0 -1 0])
      pderect([0 1 -1 0])
      pderect([0 1 0 1])

See Also

`pdecirc`, `pdeellip`, `pdepoly`, `pdetool`

| pdeprtni |  | pdesdp, pdesde, pdesdt |