Reading and Writing MESH Files

MESH_IO is a MATLAB library which reads or writes MESH files defining a finite element mesh.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


MESH_IO is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Programs:

FEM_TO_MESH, a MATLAB program which reads a pair of FEM files defining node coordinates and elements, and creates a corresponding MESH file.

ICE_TO_MESH, a MATLAB program which reads a NETCDF file containing an ICE dataset and rewrites the information as a MESH file.

MESH, a data directory which contains examples of MESH files, which can be used to define the geometry of a finite element mesh in 2D or 3D, using triangles, quadrilaterals, tetrahedrons or hexahedrons.

MESH_TO_ICE, a MATLAB program which reads the ICE dataset information from a MESH files and rewrites it to a NETCDF file.


  1. Pascal Frey,
    MEDIT: An interactive mesh visualization software,
    Technical Report RT-0253,
    Institut National de Recherche en Informatique et en Automatique,
    03 December 2001.

Source Code:

Examples and Tests:

You can go up one level to the MATLAB source codes.

Last revised on 16 October 2010.