Given a filter vH I'm looking for vectors vR and vC such that:
toeplitz(vC, vR) * vX = conv(vX, vH, 'same');
For instance, for vH = [1, 2, 3, 4] and length(vX) = 7; the matrix is given by:
mH =
3 2 1 0 0 0 0
4 3 2 1 0 0 0
0 4 3 2 1 0 0
0 0 4 3 2 1 0
0 0 0 4 3 2 1
0 0 0 0 4 3 2
0 0 0 0 0 4 3
3 Comments
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/499887-generating-toeplitz-matrix-which-matches-the-convolution-shape-same#comment_785711
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/499887-generating-toeplitz-matrix-which-matches-the-convolution-shape-same#comment_785711
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/499887-generating-toeplitz-matrix-which-matches-the-convolution-shape-same#comment_785740
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/499887-generating-toeplitz-matrix-which-matches-the-convolution-shape-same#comment_785740
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/499887-generating-toeplitz-matrix-which-matches-the-convolution-shape-same#comment_786105
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/499887-generating-toeplitz-matrix-which-matches-the-convolution-shape-same#comment_786105
Sign in to comment.