Learn R Programming

matlab (version 1.0.4.1)

hilb: MATLAB hilb function

Description

Create a Hilbert matrix.

Usage

hilb(n)

Value

Returns an n-by-n matrix constructed as described above.

Arguments

n

numeric scalar specifying dimensions for the result

Details

The Hilbert matrix is a notable example of a poorly conditioned matrix. Its elements are


    H[i, j] = 1 / (i + j - 1)

.

Examples

Run this code
hilb(3)

Run the code above in your browser using DataLab