[Gmsh] Gmesh to MATLAB

Zenker, Dr. Matthias Matthias.Zenker at erbe-med.com
Tue Apr 26 13:31:54 CEST 2011


Hi,

there is a script in the gmsh source distribution which reads in a msh file. You can find it under utils/converters/matlab/load_gmsh.m.

To produce your desired output, I think you will have to do a little bit of extra scripting.

HTH,

Matthioas 


----------------------------------------------------------------
ERBE Elektromedizin GmbH
Dr.rer.nat. Matthias Zenker
Dipl. Phys.
Grundlagenentwicklung / Fundamental Development
Waldhoernlestrasse 17
72072 Tuebingen
Germany
Phone + 49 (0) 7071 755 - 226
Fax + 49 (0) 7071 755 - 5226
E-Mail: <mailto:Matthias.Zenker at erbe-med.com>
URL: http://www.ERBE-med.com
----------------------------------------------------------------

-----Ursprüngliche Nachricht-----
Von: Gmsh User [mailto:amrit_pou at hotmail.com] 
Gesendet: Freitag, 22. April 2011 20:31
An: gmsh at geuz.org
Betreff: [Gmsh] Gmesh to MATLAB

Hello Gmsh users,
I was just wondering whether there exits a MATLAB function that can read .msh file created by Gmsh software and returns output in the following format:

Output1: nodal coordinates = array of x y z coordinates of all the nodes (including the boundary nodes)

Output2 : nodal numbers = array of node numbers for each element


I'd appreciate if somebody could point me to the appropriate resources where I can find such a MATLAB function.

Thank you for your time.

PS # I have Gmsh installed and running in MAC OX 10.6 .