Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How does one differentiate in matlab

1 visualizzazione (ultimi 30 giorni)
Abhey Pal Singh Kumar
Abhey Pal Singh Kumar il 14 Mag 2018
Chiuso: Abhey Pal Singh Kumar il 14 Mag 2018
How does one differentiate and plot in matlab

Risposta accettata

Ameer Hamza
Ameer Hamza il 14 Mag 2018
Modificato: Ameer Hamza il 14 Mag 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)

Più risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by