[Getdp] change mesh output format

Christophe Geuzaine geuzaine at acm.caltech.edu
Fri Nov 14 21:13:49 CET 2003


mgre wrote:

> Hello,
> 
> I would like to use the gmsh output file as input for a Matlab program.
> Is it possible to change the format of the gmsh output file to have a 
> better input for Matlab?
> The best would be to use gmsh to create a matlab function that defines 
> the mesh in Matlab syntax.
> 

You will have to modify the sources for that (have a look at
Mesh/Print_Mesh.cpp).

(Note that you should be able to read the current mesh files quite
easily in Matlab, since Matlab provides C-style fscanf() functions.)

Christophe

-- 
Christophe A. Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org