Integration of displacement to velocity then acceleration
2 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
Sean de Wolski
2014 年 5 月 15 日
Don't you mean take the derivative of displacement with respect to time to get velocity and again for acceleration?
doc diff
4 件のコメント
Sean de Wolski
2014 年 5 月 16 日
I would guess you would want dt to be a column vector so it's the same shape and size as x and y and you will want to have it be the change in time, not absolute time.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!