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!

Answers (1)

Jan
Jan on 4 Apr 2011
dv = gradient(v(:, 2), v(:, 1))
EDITED: And for the mean:
meandv = mean(dv);

2 Comments

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

Sign in to comment.

Asked:

on 4 Apr 2011

Community Treasure Hunt

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

Start Hunting!