Skip to content

surfc

3D surface plot with contour lines projected on the floor.

h = surfc(X, Y, Z, ...)

Combines surf with a contour plot drawn on the floor of the 3D axes. Useful for showing the level sets of a surface alongside its 3D shape.

surfc(peaks(50))
  • surf — 3D surface plot with colored faces.
  • meshc — Mesh plot with contour lines on the floor.
  • contour — Contour plot of a 2D scalar field.