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:[email protected]> URL: http://www.ERBE-med.com ---------------------------------------------------------------- -----Ursprüngliche Nachricht----- Von: Gmsh User [mailto:[email protected]] Gesendet: Freitag, 22. April 2011 20:31 An: [email protected] 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 . _______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
