Lowpass FIR filter code.
Afficher commentaires plus anciens
Hello
I need to simulate some audio files using lowpass FIR filter (Digital). I have tried doing it using simulink but I need to do it using a code. Can anyone please tell me how to do it? I am facing a problem as I dot know how to incorporate the audio file(.wav). It would be great if anyone could give me some ideas of doing it.
Thank you:)
1 commentaire
Kukuh Priambodo
le 3 Déc 2016
Modifié(e) : Kukuh Priambodo
le 3 Déc 2016
fs = 10000; [x,fs] = audioread (fname); % input your file :) Wn = .35; N = 57; LP = fir1(N,Wn); [H_x,w]=freqz(LP); len_f=length(H_x); f=1/len_f:1/len_f:1; plot(f,20*log10(abs(H_x))); grid
%thanks
Réponses (1)
Catégories
En savoir plus sur Digital Filter Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!