how to plot magniture and phase response of a filter?
Mostra commenti meno recenti
Hey everyone heres the question: http://img42.imageshack.us/img42/3236/capturezih.jpg I cant seem to get the plots to work
Heres my matlab code
w=0:0.001:pi;
Hw=(0.1*(exp(1j*w)-1))/(exp(1j*w)+0.8);
figure (1)
subplot (2,1,1)
plot(w,abs(Hw))
subplot (2,1,2)
plot(w,angle(Hw))
Risposte (2)
Teja Muppirala
il 10 Apr 2013
You need to do elementwise division, use "./" instead of "/"
Hw=(0.1*(exp(1j*w)-1))./(exp(1j*w)+0.8);
1 Commento
LeBron
il 10 Apr 2013
LeBron
il 11 Apr 2013
0 voti
Categorie
Scopri di più su Analog Filters in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!