Clear Filters
Clear Filters

I want to down sample my vehicle speed.

2 views (last 30 days)
Riddhesh
Riddhesh on 7 Dec 2023
Commented: TITTU GEORGE on 14 Feb 2024
Hello, I am working on calculations of tractive force using vehicle longitudinal model. I want to down sample my vehicle speed which has steps in it. I am using diff(Vehicle_Speed) / diff(time) in order to calculate acceleration. The acceleration is too noisy which in turn gives me noisy tractive curve. Please let me know how to down sample my data to 10 Hz.

Answers (1)

TITTU GEORGE
TITTU GEORGE on 7 Dec 2023
Filtering the differnce equation to get acceleration can be considered..This will help in removing the noise
  3 Comments
Walter Roberson
Walter Roberson on 7 Dec 2023
You can only use downsample() for that purpose if the ratio of the original frequency to 10 Hz happens to be an integer. Otherwise you should use resample
... I don't think you will be satisfied with the results, but you will need to try it and see.
TITTU GEORGE
TITTU GEORGE on 14 Feb 2024
A simple first order filter with a suitable time constant will do the trick in this case

Sign in to comment.

Categories

Find more on Statics and Dynamics in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!