DSPRelated.com
Forums

Help freq's removing using FIR

Started by acep...@gmail.com January 1, 2010
Hello all,
I have a sum of cosine functions as

clear all;
Asim=[0.185, 0.22, 0.25, 0.33, 0.41, 0.60];
Tsim=[23.54, 45.83, 55.67, 89.54, 93.02, 120.18];
phase=[2.3, 0.46, 2, 1.18, 0.86, 1.89];
p=1:8000;
value=0;
Cosine1=0;
Cosine2=0;
Cosine3=0;
Cosine4=0;
Cosine5=0;
Cosine6=0;
Cosine1=Cosine1+Asim(1)*cos(2*pi*1/Tsim(1)*p+phase(1))\';
Cosine2=Cosine2+Asim(2)*cos(2*pi*1/Tsim(2)*p+phase(2))\';
Cosine3=Cosine3+Asim(3)*cos(2*pi*1/Tsim(3)*p+phase(3))\';
Cosine4=Cosine4+Asim(4)*cos(2*pi*1/Tsim(4)*p+phase(4))\';
Cosine5=Cosine5+Asim(5)*cos(2*pi*1/Tsim(5)*p+phase(5))\';
Cosine6=Cosine6+Asim(6)*cos(2*pi*1/Tsim(6)*p+phase(6))\';
serie123456=Cosine1+Cosine2+Cosine3+Cosine4+Cosine5+Cosine6;

where T are periods, sampling interval is 1 day, ie 1 sample per day.

I wish to know how to cut all periods above 80 (T>80) using a high pass filter such as FIR or any other kind of filter without affecting freq\'s below 80 (T<80).

If a high pass filter work correctly we should get only first 3 periods (23.54, 45.83, 55.67) from a spectral analysis with no changes in phases and amplitudes.
Does anybody can help me with the code on how to do this?

Thanks a lot!

Alberto
Skype:acepsut