Display a 3D surface Z=F(X,Y)

**MATLAB_SURF**,
MATLAB functions which
demonstrate the MATLAB surf() function for displaying a 3D surface
of the form Z=F(X,Y).

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

**MATLAB_SURF** is available in
a MATLAB version.

CONTOUR_GRADIENT, a MATLAB program which displays contours and gradient vectors for a function f(x,y).

CONTOUR_GRADIENT_3D, a MATLAB program which shows how contours and gradient vectors for a function f(x,y) can be displayed in a 3D plot.

LEVELS, a MATLAB library which makes a contour plot of a function Z=F(X,Y), choosing the contour levels using random sampling.

SHORELINE, a MATLAB program which tries to identify and triangulate the 2D domain over which some function f(x,y) is nonnegative.

SHORELINE2, a MATLAB program which tries to identify and triangulate the 2D domain over which some function f(x,y) is approximately zero.

TEST_INTERP_2D, a MATLAB library which defines test problems for interpolation of regular or scattered data z(x,y), depending on a 2D argument.

VORONOI_MOUNTAINS, a MATLAB program which makes a mountain plot of a Voronoi diagram, that is, a surface plot of the distance from each point to its nearest Voronoi generator.

- timestamp.m is a script which prints a timestamp;

- surf_test.m calls all the test functions.
- surf_test01.m displays a surface related to the MATLAB peaks() function, using red to highlight the regions where Z > 1.5.

- surf_test01_2d.png an "overhead" view of the highlighted region.
- surf_test01_3d.png a 3D view of the highlighted region.

You can go up one level to the MATLAB source codes.