Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

hilb

MATLAB hilb function


Description

Create a Hilbert matrix.

Usage

hilb(n)

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)

.

Value

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

Author(s)

Examples

hilb(3)

matlab

MATLAB emulation package

v1.0.2
Artistic-2.0
Authors
P. Roebuck
Initial release
2014-06-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.