I want to integrate this displacement vector (jh) to get velocity and then to get acceleration.
There are multiple trials of which I need to integrate from. when i do:
%%Calculation of Velocity and Acceleration
v= trapz (jh); a= trapz (v);
this gives an output for the V but not for the A. When I do cumtrapz below:
%%Calculation of Velocity and Acceleration v= cumtrapz (jh); a= cumtrapz (v);This is a cumulative integration and this is not what I want
Best Answer