poimesh
(Not recommended) Generate regular mesh on rectangular geometry
poimesh is not recommended. To solve Poisson's equations, use
solvepde. For details, see Solve Problems Using PDEModel Objects.
Description
[
constructs a regular mesh on the rectangular geometry by dividing the rectangle into
p,e,t] = poimesh(g,nx,ny)nx pieces along the x-direction and
ny pieces along the y-direction, thus resulting in
(nx + 1)*(ny + 1) nodes in the domain. The
x-direction is the direction along the edge that makes the smallest angle
with the x-axis.
For best performance with poisolv, the larger of
nx and ny must be a power of 2.
If g is not a rectangle, poimesh returns
p as zero.


