How to reconstruct each frequency components by inverse FFT ?
I need a very accurate method.
I have a discrete signal as plotted in Fig.1.
Fig.1.
I first multiply the signal by a Hann window function. Then take FFT in Matlab, and the spectrum is as Fig 2.
.
Fig2.
A smaller scale of amplitude in Fig 3
Fig 3.
According to the location of the peaks, I pick up the signal components, with half band width as 5 bins. I do the IFFT, and divide the results by the Hann window function. It seems this method works well for the first peak, but the cases for the second and third peaks shown in Fig 4 and 5 respectively are not good.
Fig 4.
Fig 5.
My questions are
(1) How to remove the “red noise” around the frequency 0,1,2 in Fig 2 and 3? It seems hard to detrend in my signal.
(2) In Fig 4 and 5, it seems that there are some abnormal oscillations at the left and right edges.
How to remove the edge effects? I need to know exactly the starting points of the second and third peaks in the physical domain.
(3) How to remove the effect of the window function after doing IFFT?
Thank you in advance.