Plotting differential equations, need help

1 Ansicht (letzte 30 Tage)
Andrew
Andrew am 6 Okt. 2014
Kommentiert: Yu Jiang am 6 Okt. 2014
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

Akzeptierte Antwort

Yu Jiang
Yu Jiang am 6 Okt. 2014
plot(t(2:end),y)
  8 Kommentare
Andrew
Andrew am 6 Okt. 2014
its ok, i fixed it. thanks for your help sir.
Yu Jiang
Yu Jiang am 6 Okt. 2014
You are welcome.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by