フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Manual Deconvolution without using deconv

1 回表示 (過去 30 日間)
Bleron Kroni
Bleron Kroni 2020 年 4 月 6 日
閉鎖済み: Bleron Kroni 2020 年 4 月 7 日
Can someone help to write the Deconvolution-formel as a matlab code.
I know that y(n) = x(n)*h(n), so the length of y = (length of x + length of h) -1
I just tried something but the length of the vectors are not right so i dont get the right results.
y=input('Enter y: ')
h=input('Enter h: ')
m=length(y);
n=length(h);
Y=[y,zeros(1,m+n+1)];
H=[h,zeros(1,m)];
for i=n+m;
X(i)=0;
for j=1:n+m-1
if(i-j+1>0)
X(i)=X(i)+((Y(i)-X(j)*H(i-j+1))/H(1));
else
end
end
X
end

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by