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

4 ビュー (過去 30 日間)
Mithushan Kanthasamy
Mithushan Kanthasamy 2022 年 1 月 20 日
回答済み: KSSV 2022 年 1 月 20 日
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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by