Sinewave analysis in LPF
Mostrar comentarios más antiguos
[EDIT: 20110808 10:29 CDT - reformat - WDR]
i have designed a LPF with the following spec.
%Low frequncy range BPF --------its actually a low pass filter with passband ripple=0.7db,stopband ripple=90db, passband=1000hz, stopband=1200hz.
My doubt is i have generated simulated sine wave with following spec.
fs = 20481; %sampling freq.
input_freq = 400;
t = 0:(1/fs):((1/fs)* (20481));
u = (0.7* sin(2*pi*input_freq*t));
whether i can give this simulated sinewave to my LPF design. If possible how to calculate the order of the filter and filter coefficient.
Here i am using firpmord() to calculate the order and firpm()for the fir.
Respuestas (3)
Honglei Chen
el 8 de Ag. de 2011
0 votos
Hi Venkatesh,
I don't quite understand your question. Since you already used firpmord and firpm, then you already have the order and filter coefficients. Then you can use filter() command to pass your signal through the filter.
HTH
venkatesh P
el 9 de Ag. de 2011
0 votos
Honglei Chen
el 9 de Ag. de 2011
0 votos
You can do that too, since firpm gives an FIR filter.
Categorías
Más información sobre Digital Filter Design 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!