FUNCTION REFERENCE

peaks

Evaluate the peaks test surface.

Evaluate the peaks test surface.

Syntax

peaks; peaks(N); peaks(V); peaks(X, Y); [X, Y, Z] = peaks(N)

The default grid is 49-by-49 over [-3,3]. N selects a square grid; V supplies grid coordinates. With two inputs, evaluates corresponding coordinates directly. Three outputs return the grid coordinates and heights.

Example

size(peaks)   % [49 49]

Differences from MATLAB: Returns numeric arrays; the no-output form does not create a surface plot.

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