Extract a Bode Plot from a filter
16 次查看(过去 30 天)
显示 更早的评论
I have this low pass filter and need to extract the bode plot of it.
[b,a]=butter(3,50/1000,'low');
freqz function isn't working, possibly because it's not a digital filter. Could someone guide me on how I can do it.
2 个评论
Geoff Hayes
2018-5-28
Karl - please clarify what you mean by freqz function isn't working. Are there errors or something else?
采纳的回答
Star Strider
2018-5-28
Use the Signal Processing Toolbox freqs (link) function for continuous filters, or freqz (linked to at the end of that documentation) for discrete filters. You can also get the amplitude and frequency outputs.
[b,a]=butter(3,50/1000,'low');
figure
freqs(b, a)
更多回答(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!