How to write a function which performs deconvolution to solve for x given y and h where y = h*x (all column vectors) using linsolve
4 ビュー (過去 30 日間)
古いコメントを表示
I do know that the deconv() function can do it perfectly. However, I was wondering if anyone can write a function with linsolve() to perform deconvolution. I have tried to make a simple implementation but it seems to be not universal.
function x = mdeconv(h, y)
%Deconvolution
%
hT = toeplitz([h(1) zeros(1,length(y)-length(h))], [h zeros(1,length(y)-length(h)) ]);
%x = linsolve(hT, y);
x = y/hT;
end
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Mathematics and Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!