Data file time derivative

Hello,
I have a two-column discrete data file with 10,000 rows. The first column is the time (t) and the second is the velocity data (v) where time increment, Delta-T = 0.0001. I am trying to find the time gradient of the velocity (dv/dt). Can someone help me with the coding?
Many thanks!

Respuestas (1)

Jan
Jan el 4 de Abr. de 2011

2 votos

dv = gradient(v(:, 2), v(:, 1))
EDITED: And for the mean:
meandv = mean(dv);

2 comentarios

Asker1
Asker1 el 4 de Abr. de 2011
Hi Jan, thank you for the quick response. However, the above command generates a one-column matrix for gradient. But I am looking for an average dv/dt approximation.
Jan
Jan el 4 de Abr. de 2011
I still have the impression, that I do not get your question completely.

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 4 de Abr. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by