Extract a Bode Plot from a filter
37 ビュー (過去 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)
2 件のコメント
その他の回答 (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!