How can I calculate the Peak acceleration from IMU output file?

5 views (last 30 days)
I'm trying to calculate the cumulative acceleration from IMU file. (Attached) Can I use this code (https://www.mathworks.com/matlabcentral/answers/453374-converting-accelerometer-data-to-frequency#answer_368192) and what should I change? Thanks in advance
  6 Comments
Newbie
Newbie on 16 Jun 2020
My bad. I actually need the peak acceleration. Should I use findpeaks function instead?
Newbie
Newbie on 16 Jun 2020
@James
There should be internal and external rotation as this sensor is attached to lower leg

Sign in to comment.

Accepted Answer

David Hill
David Hill on 16 Jun 2020
num = xlsread('test550.xlsx');
peakAcc=max(vecnorm(num(:,3:5)'));

More Answers (0)

Community Treasure Hunt

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

Start Hunting!