How to compute the magnitude and phase difference of an input and output signal in a single time-domain plot?

조회 수: 23 (최근 30일)
How to compute the magnitude and phase difference of an input and output signal in a single time-domain plot?
I have used symbolic math to define an time-domain sinusoid frequency as an input to a given transfer function. I then calculate the output signal using convolution and then used it to produce a time domain plot by using the subs() and double() function to convert the singnals from symbolic to double precision before plotting.
I was able to produce a plot of the input and output signals in the time domain, but am unsure how to compute the magnitude and phase difference of the input and output signals.
  댓글 수: 3
Shikhar Singh
Shikhar Singh 2021년 10월 31일
I am trying to use the time domain plot to determine the magnitude and the phase difference between the input and output signal, as opposed to using the bode function to output the mag and phase. How would I go about doing that.
VBBV
VBBV 2021년 10월 31일
Once you know bode function outputs, for mag and phase, apply fft /ifft functions on the obtained data to convert them to time domain.

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

답변 (1개)

Star Strider
Star Strider 2021년 10월 31일
See if the alignsignals function will produce the relevant phase information (with respect to the index difference). Without actually seeing the signals, much less having the data to experiment with, posting a more precise response is not possible.
.

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by