Question

I am trying to convert an array of velocity values to acceleration values. I understand that acceleration is the integral of velocity, but don't know how to acheive this. I am using MATLAB, so if anyone can offer a solution in this language, I would be very grateful! See the graph below:

enter image description here

The yellow line plots the velocity and the vertical dotted lines show the peaks and troughs of that waveform (peaks and troughs found using peakdet). The green horizontal stuff in the middle is unrelated to this question.

What I am trying to isolate is the steepest part of the large downward slopes on the curve above. Can anyone offer any advice on how to calculate this?

P.S. I am aware that quad() is the function used to integrate in MATLAB but don't know how to implement it in this situation.

Was it helpful?

Solution

Acceleration is a derivative of velocity.

If your velocity values are stored in v, you can get a quick numerical derivative of v with

a = diff(v)

Be aware that if v is a real rather than synthetic signal, a is likely to be pretty noisy, so some smoothing may be in order, depending on how you're going to use it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top