MATLAB Answers

0

Reading *.msh files (3D) in Matlab.

Asked by Sanwar Ahmad on 1 Oct 2019
Latest activity Commented on by Sanwar Ahmad on 6 Nov 2019
I have created this 3D geometry and the mesh in Gmsh, now I need to get the number of nodes, elements, faces from the mesh in Matlab. How can I do that?
I can send you the *.geo and the *.msh files.
Thanks in advance.
Sanwar

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Sahithi Kanumarlapudi on 5 Nov 2019

findElements and findNodes can be used to calculate the number of elements and nodes in a mesh respectievely.
You can find the documentation for both the functions in the following links

  1 Comment

Thanks Sahithi. I tried these ways, but these are written for specific geometries (I think), and I couldn't apply them for the model I am working.
Moreover, I have written my own codes that can read the *.msh files.

Sign in to comment.