Learn R Programming

pracma (version 1.8.8)

Toeplitz: Toeplitz Matrix

Description

Generate Toeplitz matrix from column and row vector.

Usage

Toeplitz(a, b)

Arguments

a
vector that will be the first column
b
vector that if present will form the first row.

Value

  • Matrix of size (length(a), length(b)).

Details

Toeplitz(a, b) returns a (non-symmetric) Toeplitz matrix whose first column is a and whose first row is b. The following rows are shifted to the left.

If the first element of b differs from the last element of a it is overwritten by this one (and a warning sent).

See Also

hankel

Examples

Run this code
Toeplitz(c(1, 2, 3, 4, 5))
Toeplitz(c(1, 2, 3, 4, 5), c(1.5, 2.5, 3.5, 4.5, 5.5))

Run the code above in your browser using DataLab