A question about the freqz function
3 次查看(过去 30 天)
显示 更早的评论
Hi,
My name is Robert and I´m having a minor problem with the freqz function in MATLAB. I´m using it to get the frequency response from a filter in the following way:
H=freqz(zeros,poles,frequency vector,sampling frequency)
however, when I plot the phase in the following way:
plot(180/pi*angle(H))
I don´t get the same phase characteristics as i get if i just write
freqz(zeros,poles,512,sampling frequency)
how do I get the same phase characteristics?
Thanks in advance Sincerely Robert
2 个评论
Walter Roberson
2011-5-29
I am not familiar with that function, but I wonder if perhaps you should unwrap() the angle(H) ?
回答(1 个)
Paulo Silva
2011-5-29
Try this way:
[h,w]=freqz(zeros,poles,frequency vector,sampling frequency)
plot(frequency vector,w)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!