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일

1 개 추천

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개)

카테고리

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

제품

릴리스

R2015b

질문:

2019년 9월 15일

답변:

2019년 9월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by