How to find out roll-off from magnitude response of filter in matlab
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to find out roll-off from magnitude response of filter in matlab?
This is from doc frequency response of matlab site
0 commentaires
Réponses (1)
Chunru
le 23 Sep 2021
fs = 2000;
[b,a] = butter(9,400/(fs/2));
[h, f] = freqz(b,a,16384,fs);
h = 20*log10(abs(h));
[~, i3db] = min(abs(h - 10*log10(1/2)));
f3db = f(i3db);
plot(f, h);
xline(f3db)
grid on
ylim([-60 0])
8 commentaires
Voir également
Catégories
En savoir plus sur Filter Design dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!