Plotting differential equations, need help

1 次查看(过去 30 天)
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by