MATLAB: Is there anyway to convert vibration acceleration data into velocity

vibration

How can I convert the vibration acceleration data collected in real time to velocity ? I know the relation is to integrate the data but my system requires real time velocity monitoring. I appreciate your reply.
Thanks in advance

Best Answer

I already found the answer so I'll just post here if anyone need.
velocity = cumtrapz(acceleration-mean(acceleration));
-- The acceleration signal is subtracted from its mean() value in order to remove the DC components and prevent the unnecessary ramp in the velocity signal.
-- cumtrapz() Matlab function is used to integrate the acceleration data in real time using trapezoidal rule.
Related Question