Graphing velocity and acceleration

I have instantaneous velocity at different time interval. I need to graph velocity vs time graph, and acceleration vs time graph using for loop.
v = [15 15.75 16.25 17.50 18.25 18.75 19.0 19.75 20.50 21.50 21.75 22];
t = 0:0.1:1.1;
Also, how do I develop an equation that will provide me smoothest curve for velocity and acceleration.

3 件のコメント

dpb
dpb 2021 年 3 月 8 日
No loops needed (nor should be unless this is homework requirement).
See
doc plot
doc interp1
doc trapz
for starters...
MM
MM 2021 年 3 月 8 日
Yes, it is a homework requirement. I need to use loops.
dpb
dpb 2021 年 3 月 8 日
Well, for homework, the ground rules are "Show your work" and ask more specific questions about where you get stuck, not just ask for a solution...

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

回答 (0 件)

カテゴリ

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

製品

リリース

R2019b

タグ

質問済み:

MM
2021 年 3 月 8 日

コメント済み:

dpb
2021 年 3 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by