hankel
Hankel matrix
📝Syntax
H = hankel(c)
H = hankel(c, r)
📥Input Arguments
Parameter Description
c First column of Hankel matrix: vector or scalar.
r Last row of Hankel matrix: vector or scalar.
📤Output Arguments
Parameter Description
H Hankel Matrix.
📄Description

H = hankel(c) returns a square Hankel Matrix with c the first column of the matrix and the elements are zero below the main anti-diagonal.

H = hankel(c, r) returns a Hankel matrix with c as its first column and r as its last row.

If last element of c differs from the first element of r, then Hankel issues a warning and uses the last element of c for the anti-diagonal.

💡Examples
c = [1 2 3 4 5];
hankel(c)
🔗See Also
hilb
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub