필터 지우기
필터 지우기

how can I calc velocity and acceleration in matlab?

조회 수: 9 (최근 30일)
Elli
Elli 2013년 8월 22일
By the way, I have waveformdata with smplrate=5000 over timeperiod of 30sec.
Would you suggest any downsampling or filtering first? cause if I calc the diff(..), there is almost no difference in the data.Thank you

답변 (1개)

Iain
Iain 2013년 8월 22일
편집: Iain 2013년 8월 22일
Velocity = (Position2 - Position1) * sample_rate (or divide by the difference in times)
Acceleration = (Velocity2-Velocity1) * sample_rate (or divide by the difference in times)
PS. It is a calculation which is prone to noise.
  댓글 수: 2
Elli
Elli 2013년 8월 22일
thanks.what about the high sample rate? would you suggest downsampling/ filtering it first?
Iain
Iain 2013년 8월 22일
It depends on your data.
Yes, you might get accuracy improvements by averaging out over a few samples to reduce temporal noise. You might get more improvement by median-filtering, if the noise is prone to have massive spikes.
What you need to do depends on the data.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by