I want to down sample my vehicle speed.

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.

댓글 수: 2

doc resample
diff(Vehicle_Speed) / diff(time) in order to calculate acceleration
See instead gradient

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

답변 (1개)

TITTU GEORGE
TITTU GEORGE 2023년 12월 7일

0 개 추천

Filtering the differnce equation to get acceleration can be considered..This will help in removing the noise

댓글 수: 3

Riddhesh
Riddhesh 2023년 12월 7일
I tried filtering the difference equation, its not working. Is there a way I can use downsample() and reduce it to desired frequency, say 10 Hz ?
Walter Roberson
Walter Roberson 2023년 12월 7일
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 2024년 2월 14일
A simple first order filter with a suitable time constant will do the trick in this case

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

카테고리

제품

릴리스

R2023a

질문:

2023년 12월 7일

댓글:

2024년 2월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by