Extract a Bode Plot from a filter
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Karl Rueth
am 28 Mai 2018
Kommentiert: Karl Rueth
am 28 Mai 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 Kommentare
Geoff Hayes
am 28 Mai 2018
Karl - please clarify what you mean by freqz function isn't working. Are there errors or something else?
Akzeptierte Antwort
Star Strider
am 28 Mai 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Digital Filter Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!