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.

Interpolation<br />

0<br />

−1000<br />

Depth in Feet<br />

−2000<br />

−3000<br />

−4000<br />

−5000<br />

−48<br />

−48.1<br />

−48.2<br />

−48.3<br />

−48.4<br />

Latitude<br />

210.8<br />

211<br />

211.2<br />

Longitude<br />

211.4<br />

211.6<br />

Contour Plots. This code uses meshgrid, griddata, and contour to produce a<br />

contour plot <strong>of</strong> the seamount data:<br />

figure<br />

[xi,yi] = meshgrid(210.8:.01:211.8,-48.5:.01:-47.9);<br />

zi = griddata(x,y,z,xi,yi,'cubic');<br />

[c,h] = contour(xi,yi,zi,'b-');<br />

clabel(c,h)<br />

xlabel('Longitude'), ylabel('Latitude')<br />

2-23

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

Saved successfully!

Ooh no, something went wrong!