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 件のコメント

Daniel Shub
Daniel Shub 2012 年 11 月 28 日
This is a doit4me question.

サインインしてコメントする。

回答 (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 ExchangePerformance 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