Using MATLAB to Integrate Data that has a Sinusoidal Signature

1 次查看(过去 30 天)
Hello,
I am currently working with datasets that yield angular rate in radians/sec. The plots from this rate data are sinusoidal, and I need to find the angles in radians. I attempted to use the cumtrapz MATLAB function, and it integrates (I can retrieve the original signal via delta_integrated_data/delta_time); however, I don't think it is integrating correctly based on the nature of the signal, i.e., a signal with amplitude, phase, and frequency. I was expecting something that resembled -cosine +C since the original signal resembled sine. I attached a figure of the angular rate and a figure of the integrated angular rate. Is there an alternate approach that could be taken? Would using the symbolic toolbox somehow be better? Or, am I overthinking this matter? Feedback is much appreciated. Thanks!

采纳的回答

Star Strider
Star Strider 2017-11-10
The ‘Angular Rate’ signal is offset from zero (the mean appears to be 0.06), and cumtrapz is integrating that constant offset (as a constant-of-integration) as well.
I would subtract the mean of your ‘Angular Rate’ signal from your ‘Angular Rate’ signal before integrating it.
  5 个评论
C. Robinson
C. Robinson 2017-11-11
That makes sense. Thanks again for the help! Your feedback is very clear.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by