Convolution matrix
A = convmtx(h,n)
A = convmtx(h,n)
returns the
convolution matrix, A
, such that the product of A
and
a vector, x
, is the convolution of h
and x
.
If h
is a column vector of length m
, A
is (m+n-1)
-by-n
and
the product of A
and a column vector, x
,
of length n
is the convolution of h
and x
.
If h
is a row vector of length m
, A
is n
-by-(m+n-1)
and
the product of a row vector, x
, of length n
with A
is
the convolution of h
and x
.
convmtx
handles edge conditions
by zero padding.