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!

Antworten (1)

Jan
Jan am 4 Apr. 2011

2 Stimmen

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

2 Kommentare

Asker1
Asker1 am 4 Apr. 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 am 4 Apr. 2011
I still have the impression, that I do not get your question completely.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 4 Apr. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by