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)

Accepted Answer

MathWorks Support Team
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.

More Answers (0)

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!