How do I write a equation script that uses 2 sets of data.

I've been given 2 sets of data, Time and Speed. And I have to work out the acceleration. My teacher told me to use for ... end loop to do it?

1 件のコメント

Sunny Talekar
Sunny Talekar 2018 年 2 月 23 日
What does ev_data look like? Is it just velocity values at two discrete times?

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

 採用された回答

Andrei Bobrov
Andrei Bobrov 2018 年 2 月 23 日

1 投票

dvt = diff([v,t]);
a = dvt(:,1)./dvt(:,2);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by