how to filter a signal using firlpnorm???

3 visualizaciones (últimos 30 días)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 30 de Nov. de 2013
Comentada: Sivakumaran Chandrasekaran el 30 de Nov. de 2013
'y' is the input white noise and 'g' is the sine wave... h=y+g... how to filter 'h' using firlpnorm??

Respuesta aceptada

Wayne King
Wayne King el 30 de Nov. de 2013
Editada: Wayne King el 30 de Nov. de 2013
Have you read the documentation for firlpnorm()? firlpnorm() seems like a sophisticated filter design for just a sine wave in additive noise, but here is an example.
Fs = 1000;
t = 0:1/Fs:1;
% 50-Hz sine wave in noise
x = cos(2*pi*50*t)+randn(size(t));
% lowpass filter
B = firlpnorm(22,[0 .15 .4 .5 1],[0 .4 .5 1],[1 1 0 0 0]);
% Filter magnitude response
fvtool(B,1)
% Filter the data
y = filter(B,1,x);
  1 comentario
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran el 30 de Nov. de 2013
Thanks wayne... Now i got clear about my doubt.. is there any way to convert this to vlsi code?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Single-Rate Filters en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by