quad_mesh, a MATLAB code which carries out operations involving meshes of quadrilaterals.

The mesh is the collection of quadrilaterals. Each quadrilateral is termed an "element". The points used to define the shape of the quadrilateral (the corners, and sometimes a few more points) are called the "nodes".

Routines are available to:


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


quad_mesh is available in a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

fem2d, a data directory which contains a description and examples of files that describe a 2D finite element model.

fem_io, a MATLAB code which reads or writes node, element and data files defining a finite element model.

fem2d_pack, a MATLAB code which handles various tasks associated with finite element meshes.

mesh_bandwidth, a MATLAB code which returns the geometric bandwidth associated with a mesh of elements of any order and in a space of arbitrary dimension.

mesh_display, a MATLAB code which reads data defining a polygonal mesh and displays it, with optional numbering.

quad_mesh, a data directory which defines a format for storing meshes of quadrilaterals over a 2D region.


quad_mesh_order1_display, a MATLAB code which plots piecewise constant data associated with a mesh of quadrilaterals;

quad_mesh_rcm, a MATLAB code which computes the reverse Cuthill-McKee (RCM) reordering for nodes in a mesh of 4-node quadrilaterals.

triangulation, a MATLAB code which carries out operations involving meshes of triangular elements.


  1. Hans Rudolf Schwarz,
    Methode der Finiten Elemente,
    Teubner Studienbuecher, 1980,
    ISBN: 3-519-02349-0.
  2. Gilbert Strang, George Fix,
    An Analysis of the Finite Element Method,
    Cambridge, 1973,
    ISBN: 096140888X,
    LC: TA335.S77.
  3. Olgierd Zienkiewicz,
    The Finite Element Method,
    Sixth Edition,
    Butterworth-Heinemann, 2005,
    ISBN: 0750663200,

Source Code:

Last revised on 18 February 2019.