For a project, I made an acquisition of accelleration data with a sensor. I would like to find the distance from these acceleration data for that I focus on the z axis.
distance = trapz(vx(1:251)*t(2))
I did this but it's not working, it's false. Could you help me please?