Filter a noisy data.

4 vues (au cours des 30 derniers jours)
Riddhesh
Riddhesh le 6 Déc 2023
Commenté : Star Strider le 8 Déc 2023
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 commentaires
Mathieu NOE
Mathieu NOE le 8 Déc 2023
can you share your code and data ?
Star Strider
Star Strider le 8 Déc 2023
For best results (assuming equal-sized vectors), use:
gradient(Vehicle_Speed) ./ gradient(time)
instead.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by