toeplitz

Syntax

Description

T = toeplitz(c,r) returns
a nonsymmetric Toeplitz
matrix with c as its first column and r as
its first row. If the first elements of c and r differ, toeplitz issues
a warning and uses the column element for the diagonal.

Examples

Create Symmetric Toeplitz Matrix

Create Nonsymmetric Toeplitz Matrix

Create a nonsymmetric Toeplitz matrix with a specified column and row vector. Because the first elements of the column and row vectors do not match, toeplitz issues a warning and uses the column for the diagonal element.

c = [1 2 3 4];
r = [4 5 6];
toeplitz(c,r)

Warning: First element of input column does not match first element of input row.
Column wins diagonal conflict.