How can I generate a geometry and mesh for two adjacent squares in the PDE Toolbox 1.0.7 (R14SP3)?
2 views (last 30 days)
Show older comments
I would like an example to generate a mesh and geometry for 2 square regions with one common side.
Accepted Answer
MathWorks Support Team
on 22 Jan 2010
The following code can be used to obtain the mesh for 2 squares as desired. It calls the sqpde.m file (attached below)
pdegplot('sqpde')
axis equal
[p,e,t]=initmesh('sqpde');
pdemesh(p,e,t), axis equal
For more information on how to develop your own Geometry file (the attached file, sqpde.m, is an example of such a file) see the documentation for PDEGEOM.
0 Comments
More Answers (0)
See Also
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!