surf

Plotting

3D surface plot. X, Y are 2D grids (from meshgrid), Z is height.

Syntax

surf(X, Y, Z)

Examples

g = meshgrid(linspace(-3,3,30), linspace(-3,3,30)); surf(g.X, 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.