It looks like the acceleration value is always positive. If appropriate, consider negating the effect of gravity from the data.
Acceleration to Amplitude versus time
5 次查看(过去 30 天)
显示 更早的评论
Hello,
I have accelerometer data of acceleration versus time, and I need to integrate it twice to get amplitude versus time to eventually use the fourier transform to get a frequency. Currently, when I use cumtrapz to integrate the data it will always give me a pretty straight line. I need it to be something that looks like a sinusoid. Can you explain why this is happening/what I can do to fix it?
Also, how would I do the fourier transform on something that is an array with time and amplitude components (it seems as though fourier only takes in a single vector)?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210944/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210944/image.png)
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!