FUNCTION REFERENCE

surfl

Draw a surface with colours based on its slope.

Draw a surface with colours based on its slope.

Syntax

h = surfl(Z)

Syntax

h = surfl(X, Y, Z)

Returns a surface. CData is computed from the surface normals and a fixed light direction. Grid sizes, surface properties and the axes view follow surf.

Example

h = surfl(peaks(20)); h.Type   % 'surface'

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.