How to compute the magnitude and phase difference of an input and output signal in a single time-domain plot?
10 次查看(过去 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 个评论
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
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.
.
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!