Filter a noisy data.

3 次查看(过去 30 天)
Riddhesh
Riddhesh 2023-12-6
Hello, I have calculated Vehicle Speed which has steps in it. The steps were removed using the smoothdata() function. Later I used diff(Vehicle_Speed) / diff (time) to calculate acceleration which is very noisy. Using smoothing factor of 0.99 and different methods doesn't show any change but a smoothing factor of 1 gives a straight line. Is there any other way I can get smooth acceleration. As my further calculations are hindered due to acceleration data.
For information, I am working on a longitudinal model of a vehicle to calculate tractive force.
  2 个评论
Mathieu NOE
Mathieu NOE 2023-12-8
can you share your code and data ?
Star Strider
Star Strider 2023-12-8
For best results (assuming equal-sized vectors), use:
gradient(Vehicle_Speed) ./ gradient(time)
instead.

请先登录,再进行评论。

回答(0 个)

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by