Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How does one differentiate in matlab

1 visualización (últimos 30 días)
Abhey Pal Singh Kumar
Abhey Pal Singh Kumar el 14 de Mayo de 2018
Cerrada: Abhey Pal Singh Kumar el 14 de Mayo de 2018
How does one differentiate and plot in matlab

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 14 de Mayo de 2018
Editada: Ameer Hamza el 14 de Mayo de 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)

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by