Calculate the velocity for each time increment using displacement and time using a for loop?

조회 수: 3 (최근 30일)
displacement = [3.01, 3.02, 3.03, 3.04, 3.05,3.06]
time = [1, 1.01, 1.02, 1.03, 1.04,1.05]

답변 (1개)

KSSV
KSSV 2022년 1월 20일
velocity = gradient(displacement)./gradient(time)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by