Problem with convert acceleration to velocity and displacement
이전 댓글 표시
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.
답변 (2개)
Jos (10584)
2016년 6월 9일
0 개 추천
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
2016년 6월 10일
편집: vu ngothanh
2016년 6월 10일
Star Strider
2016년 6월 10일
Try subtracting the median instead of the mean.
vu ngothanh
2016년 6월 10일
Star Strider
2016년 6월 10일
As always, my pleasure.
The median is the value at which 50% of the values are above and 50% are below. The mean is significantly affected by extremes of the values, since it is the least-squared-error estimate of the centroid of a particular distribution. The median is not affected by the extremes.
Jos (10584)
2016년 6월 10일
Good suggestion, Star Strider, to use the median.
vu ngothanh
2016년 6월 13일
Bora Eryilmaz
2024년 3월 21일
0 개 추천
The new convertVibration function in MATLAB R2024a release of the Predictive Maintenance Toolbox lets you compute baseline-corrected and filtered acceleration, velocity, and displacement signals from vibration measurements using a single sensor output from either an accelerometer, velocity sensor, or displacement sensor.
카테고리
도움말 센터 및 File Exchange에서 Data Acquisition Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!