Info

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

wheres the problem of this fiter code

1 回表示 (過去 30 日間)
elaine
elaine 2014 年 11 月 27 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
bb1=[1,-0.9];
imp=1;
M=22;
r=0.9;
l=0:M;
bb2=r.^l;
HH=filter(bb1,1,bb2);
ZZ = filter(HH,1,imp)
nn=0:(length(HH)-1);
stem(nn,ZZ(nn+1));
xlabel('(n)')
ylabel('impulse response')

回答 (1 件)

Henrik
Henrik 2014 年 11 月 27 日
Without any explanations of your code it's hard to tell, but my guess would be that
ZZ = filter(HH,1,imp)
should be
ZZ = filter(imp,1,HH);
This gives no errors, but I don't know if it's correct.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by