Convert triangular matlab mesh into .msh file
Mostrar comentarios más antiguos
I have generated a 2D triangular mesh in matlab, however, I need to find a way to convert it into a .msh file. I have been searching for ages but haven't found any way to do this. I think the easiest way to convert it into a .msh file would be in GMSH but I can't find a way to upload the mesh into GMSH. I'm open to any alternatives.
Many thanks.

Respuestas (2)
Jiexian Ma
el 15 de Mzo. de 2025
Editada: Jiexian Ma
el 17 de Mzo. de 2025
1 voto
I just wrote a function to do that. Please check it.
It works for 2D triangular mesh with one or multiple domain.
emrah sever
el 25 de Mzo. de 2022
Save it in stl formay by using
stlwrite
open in gmsh and then save as .msh.
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!