Member of the matrix class.
c = hilb(n)
Generates a square Hilbert matrix whose (i, j)-th element is equal to 1/(i+j-1), where i is the row index number and j is the column index number. The Hilbert matrix is a famous example of a poorly conditioned matrix.
| Name | Description |
| n | Specifies the size of the Hilbert matrix. n is a positive scalar integer. |
| Name | Description |
| c | Returns the Hilbert matrix of size n. c is a real, symmetric matrix. |
% Generate a 3-by-3 Hilbert matrix:
C = hilb(3)
% Check the condition number of a large Hilbert matrix:
D = cond(hilb(20))