Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

hilb (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the matrix class.

Syntax

c = hilb(n)

Description

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.

Examples

Inputs

Name Description
n Specifies the size of the Hilbert matrix. n is a positive scalar integer.

Outputs

Name Description
c Returns the Hilbert matrix of size n. c is a real, symmetric matrix.

Examples

% Generate a 3-by-3 Hilbert matrix:
C = hilb(3)
% Check the condition number of a large Hilbert matrix:
D = cond(hilb(20))

Related Topics

cond
invhilb


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit