Plotting differential equations, need help

2 ビュー (過去 30 日間)
Andrew
Andrew 2014 年 10 月 6 日
コメント済み: Yu Jiang 2014 年 10 月 6 日
y = diff(sin(2*pi*t))./diff(t);
plot(t,y)
Remember diff() shortens the length of your vector by one so you will need to define a new time vector to plot against. ---- how do i do this?
thank you

採用された回答

Yu Jiang
Yu Jiang 2014 年 10 月 6 日
plot(t(2:end),y)
  8 件のコメント
Andrew
Andrew 2014 年 10 月 6 日
its ok, i fixed it. thanks for your help sir.
Yu Jiang
Yu Jiang 2014 年 10 月 6 日
You are welcome.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by