MATLAB Functions | Help Desk |
hilb
Hilbert matrix
H = hilb(n)
H = hilb(n)
returns the Hilbert matrix of order n
.
The Hilbert matrix is a notable example of a poorly conditioned matrix [1]. The elements of the Hilbert matrices arecond(hilb(4)) = 1.5514e+04See the M-file for a good example of efficient MATLAB programming where conventional
for
loops are replaced by vectorized statements.
invhilb
Inverse of the Hilbert matrix
[1] Forsythe, G. E. and C. B. Moler, Computer Solution of Linear Algebraic Systems, Prentice-Hall, 1967, Chapter 19.