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>)
Adding a view property will add some view settings from the COMSOL model such as axes labels (units) and grid and supports hiding of mesh entities. Usually it is sufficient to use the auto value for the view property:
mphmesh(model, <meshtag>, ‘view’, ‘auto’)
If the model only contains one mesh then the <meshtag> may 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