MATLAB: How to export Mesh plot data out of Comsol products into MATLAB

comsoldataexportinitmeshmeshmeshinitPartial Differential Equation Toolbox

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.

Best Answer

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.
Related Question