How I can determine the phase and magnitude between two non periodic time series?

3 views (last 30 days)
Hi,
I need to obtain the obtain the phase and the magnitude between two nonperiodic time series and plot it in time. I have only the time series in time domain. Do you have any idea how I can do it?
Thank you in advance

Answers (3)

Wayne King
Wayne King on 14 Feb 2013
Edited: Wayne King on 14 Feb 2013
I'm not sure what you mean by "plot the phase and magnitude in time"
You can use cpsd to estimate the magnitude and phase relationship between two nonperiodic time series, but you cannot get a time dependent plot out of that function.
You would to take cpsd() and feed it blocks of data to obtain a time-varying cross spectrum.

Traian Preda
Traian Preda on 14 Feb 2013
Hi,
First thank you for your answer. That's I want to ask how I can plot time dependent phase and magnitude.
Can you give me an example for the spectrogram command (maybe you can related to the previous example).
Or there is another way to make this convolution
Thank you
  1 Comment
Wayne King
Wayne King on 14 Feb 2013
I'm not sure I understood you initially, you want to measure these things for two different series as in measuring the cross spectrum?

Sign in to comment.


Traian Preda
Traian Preda on 22 Feb 2013
Hi again,
Yes I want to observe the phase shift and the magnitude of two nonperiodic signals in time.

Community Treasure Hunt

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

Start Hunting!