contour

Plotting

2D contour plot of a surface Z = f(X, Y).

Syntax

contour(X, Y, Z)

Examples

g = meshgrid(linspace(-2,2,30), linspace(-2,2,30)); contour(g.X(1), g.Y, g.X)
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.