clear;clf
load seamount  %Matlab dataset of a seamount
figure(1)
plot3(x,y,z,'.','markersize',12)
xlabel('Longitude'), ylabel('Latitude'),zlabel('Depth in feet')
grid on

%2-D Triangulation
figure(2)
plot(x,y,'.','markersize',12)
xlabel('Longitude'), ylabel('Latitude')
tri=delaunay(x,y);  %create a 2-D triangulation
hold on
triplot(tri,x,y);     %plot the triangulation

%3-D triangulation
figure(3)
trimesh(tri,x,y,z)  %3-D triangular surface in wireframe mode

%3-D triangulation in shaded mode
figure(4)
hsf=trisurf(tri,x,y,z)  %3-D triangular surface in shaded mode
set(hsf,'EdgeColor','none')
light
lighting gouraud
%lighting flat
%shading flat
shading interp
axis off

hold on
plot(x,y,'.','markersize',12)
