Using MATLAB to Integrate Data that has a Sinusoidal Signature

3 visualizaciones (últimos 30 días)
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!

Respuesta aceptada

Star Strider
Star Strider el 10 de Nov. de 2017
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 comentarios
C. Robinson
C. Robinson el 11 de Nov. de 2017
That makes sense. Thanks again for the help! Your feedback is very clear.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by