Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

wheres the problem of this fiter code

1 Ansicht (letzte 30 Tage)
elaine
elaine am 27 Nov. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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')

Antworten (1)

Henrik
Henrik am 27 Nov. 2014
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.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by