Extract a Bode Plot from a filter
18 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Karl Rueth
il 28 Mag 2018
Commentato: Karl Rueth
il 28 Mag 2018
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 Commenti
Geoff Hayes
il 28 Mag 2018
Karl - please clarify what you mean by freqz function isn't working. Are there errors or something else?
Risposta accettata
Star Strider
il 28 Mag 2018
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Digital Filter Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!