Velocity cumtrapz or gradient

11 ビュー (過去 30 日間)
Jair Winkelman
Jair Winkelman 2019 年 9 月 15 日
回答済み: Star Strider 2019 年 9 月 15 日
Hello, I have an assignment in matlab where it says: variable AZ contains acceleration data of the center of mass of a moving subject. Use the function Cumptrapz to calculate the velocity and position of the person. Even when I go the help window for cumtrapz I still don't understand how I could use it for calculating the velocity or position. I have used gradient: [acceleration] = gradient (Velocity, dt), but what is the difference between gradient and Cumptrapz to calculating velocity?
Thank you very much!

採用された回答

Star Strider
Star Strider 2019 年 9 月 15 日
The gradient function calculates the approximate numerical derivative of a vector, and the cumtrapz function calculates the approximate cumulative numerical integral of a vector. They are approximate inverses of each other.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDirected Graphs についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by