Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How does one differentiate in matlab

1 vue (au cours des 30 derniers jours)
Abhey Pal Singh Kumar
Abhey Pal Singh Kumar le 14 Mai 2018
Clôturé : Abhey Pal Singh Kumar le 14 Mai 2018
How does one differentiate and plot in matlab

Réponse acceptée

Ameer Hamza
Ameer Hamza le 14 Mai 2018
Modifié(e) : Ameer Hamza le 14 Mai 2018
diff() decrease the number of elements in a vector by one. You also need to exclude one element of vector x to make them of equal length.
plot(x(2:end), v) % or
plot(x(1:end-1), v)

Plus de réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by