triangulate_rectangle, a MATLAB code which computes a simple triangulation of a rectangular region.

The triangulation will be represented by two sets of data:


triangulate_rectangle ( xl, xr, xn, yb, yt, yn, base )


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


triangulate_rectangle is available in a MATLAB version.

Related Data and Programs:

fem2d_poisson_rectangle_linear, a MATLAB code which solves the 2d poisson equation on a rectangle, using the finite element method (fem), and piecewise linear triangular elements.


triangulation, a MATLAB code which performs various operations on order 3 (linear) or order 6 (quadratic) triangulations, including searching a delaunay triangulation to find which triangle contains a given point.

triangulation_display, a MATLAB code which displays the nodes and elements of a triangulation on the MATLAB graphics screen;

Source Code:

Last modified on 08 April 2019.