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