Displaying the Mesh
To display the mesh in a MATLAB figure, use the function mphmesh. Make sure that the mesh is built before calling this command:
mphmesh(model)
If there are several meshes in a model, specify the mesh to display using the command:
mphmesh(model, <meshtag>)
The mphmesh function will use some of the view settings that are common between COMSOL and MATLAB to show content such as axes labels (units) and grid and supports hiding of geometric entities. This is controlled using the view option. To switch off the use of view settings set the view option to none:
mphgeom(model, <geomtag>, 'view', 'none')
If the model only contains one mesh then the <meshtag> can be left empty.
Use the parent property to specify the axes handle where to display the plot:
mphmesh(model, <meshtag>, 'parent', <axes>)
The following properties are also available to specify the vertex, edge, or face rendering:
vertexmode
edgemode
facemode
vertexlabels
edgelabels
facelabels
meshcolor
edgecolor
edgelabelscolor
vertexlabelscolor
facelabelscolor
facealpha