FFTs, and ratio of FFTs Phase question

  • Level: Graduate 
  • Thread starter jblc
  • Start date
  • Tags Tags
    Phase Ratio
1 reply · 2K views · last reply
jblc
Messages
10
Reaction score
0
Q: How do you find the phase between an input and output signal? These signals are swept-sin (chirp: https://en.wikipedia.org/wiki/File:Linear-chirp.svg) signals for system identification, so I'm looking to find a transfer function.

Background: A frequency-domain Transfer Function's magnitude is found by taking the ratio of the output/input FFTs:
FFTratio = Complex{FFT out} / Complex{FFTin}, ∴ Magnitude = abs(FFTratio).
To find the phase, take the angle between the complex FFTs:
atan2( Imag{FFTratio}, Real{FFTratio} )

As a test, in Matlab's System Identification Tool, with two simple, 140 deg shifted and noisy 10 Hz sinusoids -- NON-swept, just simple sines -- the answer is as expected, and the phase is appr. -140 deg at 10 Hz in the phase plot.

Question: BUT when using two simulated constant-phase-shifted chirps, for system identification (chirp), the phase isn't a constant -140 Hz.
The phase drops dramatically from -140 deg near 1 Hz, and above 10 Hz it goes towards -5000 deg. See the attached images. The chirps are 0.01 Hz sinusoid at t=0, and a 400 Hz sinusoid at t=200s.
A zoomed 20s signal is shown for clarity. yc is output (top), uc is input (bottom).

Why is the phase not a constant -140 deg up until ~400 Hz? Why does the phase drop to -5000 deg? The swept-sin (chirp) peaks continue to remain at a constant phase relative to each other, so it should stay at -140

Attachments:
2x time-signals
1x FFTs of output(top) and input (bottom), called "Periodogram"
1x transfer function estimate, magnitude on top, phase on bottom
 
Attachments
  • Two stacked time-domain plots titled Input and output signals, showing dense green oscillations: the top output signal decays in amplitude over time from about 1 to 0 and the bottom input signal stays at amplitude near 1, both over time 0 to 200.
    chirp t full.jpg
    10.5 KB · Views: 573
  • Two stacked time-domain plots titled Input and output signals: top trace yc, bottom trace uc, both chirps rising in frequency from about t=1 to t=10 with amplitude between -1 and 1.
    chirp t.jpg
    35.1 KB · Views: 571
  • Two stacked log-log plots titled Periodogram, showing magnitude versus frequency (Hz) from 10^-2 to 10^4 Hz for yc (top) and uc (bottom), both flat near 10^-4 then falling sharply near 400 Hz.
    chirp FFTs.jpg
    12.4 KB · Views: 568
  • Two stacked Bode-style plots of a transfer function against frequency (Hz), log scale: top amplitude, flat near 1 then dipping sharply near 400 Hz; bottom phase in degrees, falling from about 0 to about -15000 deg.
    chirp phase 2.jpg
    9.6 KB · Views: 550