T = convmtx2(H,m,n)
returns the convolution matrix T for the matrix
H. If X is an
m-by-n matrix, then
reshape(T*X(:),size(H)+[m n]-1) is the same as
conv2(X,H).
Convolution matrix, returned as a numeric array. The output matrix
T is of class sparse. The number
of nonzero elements in T is no larger than
prod(size(H))*m*n.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.