Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
How does one differentiate in matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposta accettata
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)
0 Commenti
Più risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!