FUNCTION REFERENCE

hilb

Hilbert matrix.

Hilbert matrix.

Syntax

H = hilb(n)

Syntax

H = hilb(n, 'double')

H(i,j) = 1/(i+j-1).

Example

hilb(3)   % [1 1/2 1/3; 1/2 1/3 1/4; 1/3 1/4 1/5]

Differences from MATLAB: the class 'single' is not supported (no single arrays).

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