Filter a noisy data.

조회 수: 4 (최근 30일)
Riddhesh
Riddhesh 2023년 12월 6일
댓글: Star Strider 2023년 12월 8일
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개)

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by