15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Polynomials and Interpolation<br />

Convex Hulls<br />

The convhull function returns the indices <strong>of</strong> the points in a data set that<br />

comprise the convex hull for the set. Use the plot function to plot the output <strong>of</strong><br />

convhull.<br />

This example loads the seamount data and plots the longitudinal (x) and<br />

latitudinal (y) data as a scatter plot. It then generates the convex hull and uses<br />

plot to plot the convex hull:<br />

load seamount<br />

plot(x,y,'.','markersize',10)<br />

k = convhull(x,y);<br />

hold on, plot(x(k),y(k),'-r'), hold <strong>of</strong>f<br />

grid on<br />

−47.95<br />

−48<br />

−48.05<br />

−48.1<br />

−48.15<br />

−48.2<br />

−48.25<br />

−48.3<br />

−48.35<br />

−48.4<br />

−48.45<br />

210.8 211 211.2 211.4 211.6 211.8<br />

Delaunay Triangulation<br />

Given a set <strong>of</strong> coplanar data points, Delaunay triangulation is a set <strong>of</strong> lines<br />

connecting each point to its natural neighbors. The delaunay function returns<br />

a Delaunay triangulation as a set <strong>of</strong> triangles having the property that, for each<br />

triangle, the unique circle circumscribed about the triangle contains no data<br />

points.<br />

2-20

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

Saved successfully!

Ooh no, something went wrong!