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

hankel

Hankel Matrix


Description

Generate Hankel matrix from column and row vector

Usage

hankel(a, b)

Arguments

a

vector that will be the first column

b

vector that if present will form the last row.

Details

hankel(a) returns the square Hankel matrix whose first column is a and whose elements are zero below the secondary diagonal. (I.e.: b may be missing.)

hankel(a, b) returns a Hankel matrix whose first column is a and whose last row is b. If the first element of b differs from the last element of a it is overwritten by this one.

Value

matrix of size (length(a), length(b))

See Also

Examples

hankel(1:5, 5:1)

pracma

Practical Numerical Math Functions

v2.3.3
GPL (>= 3)
Authors
Hans W. Borchers [aut, cre]
Initial release
2021-01-22

We don't support your browser anymore

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