convlution matrix in four lines
No License
% CONV_MTX Convolution matrix.
% If 'x' is a column vector of length 'nx', then conv_mtx(x,nh) gives a toeplitz
% matrix 'X' of size (nx+nh-1) times (nh). 'nh' is the length of the column vector
% 'h' with which 'x' is convolved. Thus finally 'X*h' is same as conv(x,h).
% If 'x' and 'h' are row vectors, then 'X' is of size (nh) times (nx+nh-1).
% Then 'h*X' is same as conv(x,h). This does not depend on the in built command
% 'TOEPLITZ'.
Cite As
sri hari bhupala haribhakta (2025). convlution matrix in four lines (https://www.mathworks.com/matlabcentral/fileexchange/19939-convlution-matrix-in-four-lines), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Transforms, Correlation, and Modeling > Correlation and Convolution >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |