The function mphmeshstats also returns the mesh data such as element coordinates. Use the function with two output variables to get the mesh data. Enter:
where meshdata is a MATLAB structure with the following fields:
A mesh can be manually created based on a grid generated in MATLAB. However, before inserting this mesh into the model, a default coarse mesh is generated to get the mesh information, which enables you to understand the requested mesh structure to use with the createMesh method. Then a complete mesh can be constructed and stored in the meshing sequence. If the geometry is not empty, the new mesh is checked to ensure that it matches the geometry. In other words, to create an arbitrary mesh, an empty geometry sequence and a corresponding empty meshing sequence need to be created and the mesh is then constructed on the empty meshing sequence.
In the elem field the element information is retrieved, such as the node indices (using a 0 based) connected to the elements:
Table 3-1 lists the nodes and element connectivity in the mesh.