Extracting phase informations from a FFT
Show older comments
Hi,
I am currently struggling with a phase information extraction issue from a FFT. Here is basically what I want to do...
I have a signal coming from measurements that I want to replicate using the first 8 harmonics or so. I'm using the FFT to extract the amplitude of those harmonics which is pretty straight forward.
The problem occurs when I try to extract the phase of those harmonics from the same FFT data. I understood by reading some questions/answers here that it is not possible to extract directly the phase from a FFT except if some precises conditions are met(for instance, to have exactly one period of the signal without any overlapping, which is not the case here).
Is there a general way to get the information on the phase from the information I have in hand?
I already tried to inject a sinusoidal at a known frequency and phase in order to measure the phase difference between this signal and each of the harmonics instead of trying to extract the absolute phase, but it didn't work out well...
Any tips or any possible solution would be greatly appreciated!
Thank you, Alex
Accepted Answer
More Answers (1)
Wayne King
on 9 Feb 2012
1 vote
Hi, You can get the phase from the DFT of a signal (using fft()), but not from the power spectrum. So if you have the output of fft, then you can certainly get the phase information. The problem with phase is the uncertainty due to the periodicity.
Do you know a priori the frequencies you are looking for?
Or are you using fft() to also discover those frequencies?
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!