How can I generate a geometry and mesh for two adjacent squares in the PDE Toolbox 1.0.7 (R14SP3)?

2 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
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 个)

类别

Help CenterFile Exchange 中查找有关 Geometry and Mesh 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by