How can I export Mesh plot data out of Comsol products into MATLAB?

14 views (last 30 days)
I would like to generate a mesh in Comsol products like I can do with INITMESH in the Partial Differential Equation Toolbox and export the data into MATLAB.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The creation of a mesh within COMSOL Multiphysics like you can do with INITMESH within Partial Differential Equation Toolbox can be done by a function called MESHINIT within COMSOL Multiphysics.
To export the mesh data you have to use the menu for "export fem" as fem will be the structure with all the mesh information. For example, "fem.mesh" contains the mesh and "fem.mesh.p" contains all points of the mesh.
For a detailed reference, please see the 'COMSOL Multiphysics MATLAB
Interface Guide', section 'Creating Meshes', available from the Help menu of COMSOL Multiphysics.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!