Problem with convert acceleration to velocity and displacement

조회 수: 10(최근 30일)
vu ngothanh
vu ngothanh 2016년 6월 9일
댓글: vu ngothanh 2016년 6월 13일
Hi everyone,
I used DAQ to get acceleration, however, when I convert accleration to velocity and displacement (using 'cumtrapz' function) is not OK like the picture below:
Problem is that the velocity and displacement is increase with time. What i need to do make the velocity and displacement stable around 0.

답변(1개)

Jos (10584)
Jos (10584) 2016년 6월 9일
Apparently there is an offset in your acceleration data. You can subtract a running mean
A(k) = ValueFromDaq - mean(A(1:k-1))
  댓글 수: 6
vu ngothanh
vu ngothanh 2016년 6월 13일
Dear Mr Jos and Star Strider,
at last, I found "detrend" function. I think that is the best solution for this situation.
Thank you for you all for helping me.

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

Community Treasure Hunt

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

Start Hunting!

Translated by