CONTOUR_GRADIENT
Contours and Gradient Vectors for F(X,Y)


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

Usage:

contour_gradient ( xmin, xmax, ymin, ymax, @f )
where

Licensing:

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

Languages:

CONTOUR_GRADIENT is available in a MATLAB version.

Related Data and Programs:

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.

CONTOUR_SEQUENCE4, a MATLAB program which makes a sequence of contour plots based on a single XY coordinate file, and a sequence of Z(X,Y) data files.

DIST_PLOT, a MATLAB program which makes contour plots of the distance function, as defined and used in Persson and Strang's distmesh code;

LEVELS, a MATLAB library which makes a contour plot, choosing the contour levels using random sampling.

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

TRIANGULATION_ORDER3_CONTOUR, a MATLAB program which makes contour plot of scattered data, or of data defined on an order 3 triangulation.

TRIANGULATION_ORDER6_CONTOUR, a MATLAB program which makes contour plots of data defined on an order 6 triangulation.

TWOD_PLOTC, a MATLAB program which makes a color contour plot of scalar data defined on a 2D finite element mesh.

VECTOR_MAGNITUDE_GRID, a MATLAB program which reads vector data at "scattered" points, computes an interpolatory function, evaluates it on a uniform grid of user-specified density, and produces a contour plot of the vector magnitude.

Source Code:

Examples and Tests:

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


Last modified on 16 October 2011.