필터 지우기
필터 지우기

FFT - Single sided phase?

조회 수: 6 (최근 30일)
Mark Thompson
Mark Thompson 2020년 7월 10일
댓글: Star Strider 2020년 7월 10일
Hi there,
I'm familiar with the process of calculating a single-sided magnitude after computing the fft in MATLAB (or any other package).
However, do we have to multiply the phase values by 2 for non-DC fft values? OR, do I simply just keep n/2+1 phase values returned from the raw fft vector?
I've seen examples on MATLAB Answers that show:
  1. just use n/2+1 phase values to represent the final phase response of an fft calculation, and another that shows:
  2. truncate the phase vector to n/2+1 values as per previous, and then doubling all of the of the phase values (except DC value).
Hence my confusion as to which is correct. Would love to know what is the best way to represent the single-sided phase response following the fft process.
Thank you!

채택된 답변

Star Strider
Star Strider 2020년 7월 10일
It is not necessary (or advisable) to multiply the phase values by 2, particularly because it doesn’t matter. The phase values are the arctangent (actually atan2) of the imaginary divided by the real part of the complex Fourier transform, so the multiplication would be irrelevant. The multiplication by 2 applies to the magnitude values because a one-sided Fourier transform represents only half the energy in the signal. It would be worthwhile to use the unwrap function for the phase angles, however.
  댓글 수: 2
Mark Thompson
Mark Thompson 2020년 7월 10일
Thank you! Great to have some clear direction! And I totally agree.
I was just confused by the code provided for variable phase_singe in this post: Extracting phase which was doubling the phase value!
Cheers!
Star Strider
Star Strider 2020년 7월 10일
As always, my pleasure!
That post confuses me as well. Multiplying the phase by 2 may make some sense in that particular application (although I still don’t understand the logic behind it), however it makes no sense generally.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by