23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

delaunay<br />

2delaunay<br />

Purpose Delaunay triangulation<br />

Syntax TRI = delaunay(x,y)<br />

Definition Given a set of data points, the Delaunay triangulation is a set of lines<br />

connecting each point to its natural neighbors. The Delaunay triangulation is<br />

related to the Voronoi diagram— the circle circumscribed about a Delaunay<br />

triangle has its center at the vertex of a Voronoi polygon.<br />

Description TRI = delaunay(x,y) for the data points defined by vectors x and y, returns a<br />

set of triangles such that no data points are contained in any triangle's<br />

circumscribed circle. Each row of the m-by-3 matrix TRI defines one such<br />

triangle and contains indices into x and y. If the original data points are<br />

collinear or x is empty, the triangles cannot be computed and delaunay returns<br />

an empty matrix.<br />

Remarks The Delaunay triangulation is used by: griddata (to interpolate scattered<br />

data), voronoi (to compute the voronoi diagram), and is useful by itself to<br />

create a triangular grid for scattered data points.<br />

2-416<br />

x<br />

Delaunay triangle<br />

Voronoi polygon<br />

The functions dsearch and tsearch search the triangulation to find nearest<br />

neighbor points or enclosing triangles, respectively.<br />

Note delaunay is based on qhull [2]. For information about qhull, see<br />

http://www.geom.umn.edu/software/qhull/. For copyright information, see<br />

http://www.geom.umn.edu/software/download/COPYING.html.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!