Skip to content

surf

plot · scripts/plot/draw/surf.m

: surf (z)
: surf (z, c)
: surf (x, y, z)
: surf (x, y, z, c)
: surf (…, name, value)
: surf (ax, …)
: h = surf (…)

Draw a shaded surface.

z is a matrix of at least two rows and columns. x and y are either vectors (of length columns (z) and rows (z)) or matrices of the size of z; by default they count columns and rows. The optional c supplies the colour data (default z). The result is the handle of the surface object.