フィルターのクリア

Integration of velocity not working, creating zeros

2 ビュー (過去 30 日間)
Adrienne
Adrienne 2014 年 5 月 15 日
編集済み: dpb 2014 年 5 月 16 日
%%Calculation of Velocity and Acceleration
v(i,1)= trapz(jh(i,1));
a(i,1)= trapz(v(i,1));
This is what I am using for differentiation. But both of these are coming out in the workspaces as zero... I don't know what this is. jh is jump height, there are numbers for this

採用された回答

dpb
dpb 2014 年 5 月 15 日
trapz is an trapezoidal INTEGRATION routine, not differentiation
doc trapz
doc diff
  2 件のコメント
Adrienne
Adrienne 2014 年 5 月 15 日
sorry i did mean integration and it is not working
dpb
dpb 2014 年 5 月 15 日
編集済み: dpb 2014 年 5 月 16 日
"not working" is NEVER sufficient explanation for a problem.
But, if v is velocity and a acceleration, then you're going the wrong way physically.
a=dv/dt --> v=Int(a dt)
As for the zero result, looks like jh(i,1) is a single point so there's nothing to integrate over (even though you need to be differentiating instead it would appear).

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by