derivation using command diff

if x is position and t time
velocity=diff(x)./(diff(t)
acceleration=diff(x,2)./diff(t,2) or diff(x,2)./diff(t)
?
can anyone confirm?

답변 (1개)

John Petersen
John Petersen 2012년 11월 28일

0 개 추천

velocity = diff(x);
acceleration = diff(velocity);
You can verify it yourself with an example such as x=cos(t), v=sin(t), a=-cos(t)

카테고리

도움말 센터File Exchange에서 Performance and Memory에 대해 자세히 알아보기

태그

질문:

joo
2012년 11월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by