Using MATLAB to Integrate Data that has a Sinusoidal Signature
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
C. Robinson
el 10 de Nov. de 2017
Comentada: Star Strider
el 11 de Nov. de 2017
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!
0 comentarios
Respuesta aceptada
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
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!