Effacer les filtres
Effacer les filtres

Plotting differential equations, need help

2 vues (au cours des 30 derniers jours)
Andrew
Andrew le 6 Oct 2014
Commenté : Yu Jiang le 6 Oct 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

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by