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!

回答 (1 件)

Jan
Jan 2011 年 4 月 4 日

2 投票

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

2 件のコメント

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

サインインしてコメントする。

カテゴリ

質問済み:

2011 年 4 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by