Simple FIR Filtering on some white noise
Mostrar comentarios más antiguos
Hi All,
A really stupid question for ya. I appologize in a advance that I am so confused on something this easy.
I am trying to get an FIR lowpass filter to work on some white noise I generated in Audacity. I have already gotten the IIR version of this filter to work using the "butter" command, but I can't seem to get the FIR one to work.
I call in the white noise using "audioread"
[signal,fs] = audioread('white.wav');
Wn = 60/(fs/2); %Cutoff frequency of 60 Hz (normalized)
and then do the following:
%FIR Filter [b_fir,a_fir] = fir1(4,Wn,'high');
signal_fir = filter(b_fir,a_fir,signal);
audiowrite('white_60Hz_fir.wav',signal_fir,fs);
The signal that comes out (signal_fir) doesn't seem to have anything done to it.....
Comments on what I'm doing wrong please.
Thanks in advance
3 comentarios
WAJID
el 24 de Ag. de 2014
i need complete code ..plz send to me
Image Analyst
el 24 de Ag. de 2014
WAJID - that kind of request rarely works. Why don't you read this and then post another question of your own. Reference this post and tell why the answers given here don't work for you. Supply your own data and any background information necessary to let people develop an answer for you.
WAJID
el 24 de Ag. de 2014
in simulink i enter a white noise to a signal but how to filter it by fir filter?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Filter Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

