how can I calc velocity and acceleration in matlab?
9 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
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 件のコメント
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 Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!