how to plot magniture and phase response of a filter?
조회 수: 1 (최근 30일)
이전 댓글 표시
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))
댓글 수: 0
답변 (2개)
Teja Muppirala
2013년 4월 10일
You need to do elementwise division, use "./" instead of "/"
Hw=(0.1*(exp(1j*w)-1))./(exp(1j*w)+0.8);
참고 항목
카테고리
Help Center 및 File Exchange에서 Analog Filters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!