Integrating acceleration to get the displacement
53 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hey
I am trying to integrate acceleration to get the displacement as you can see in the figure below. However, the velocity and displacement are showing exponential decrease. I have used you cumtrapz twice to get the displacement. Anybody know what's the issue here? I also don't want to use detrend to remove the polynomial part,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1280971/image.png)
3 comentarios
Sulaymon Eshkabilov
el 2 de Feb. de 2023
Can you share your numerical data to verify what you have showed here is accurate or not?
Sam Chak
el 2 de Feb. de 2023
Just want to add that in motion system, when performing the integrations, the initial velocity and the initial displacement are required to obtain an accurate solution. From your images, it appears that you assumed
and
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1281506/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1281511/image.png)
Respuestas (2)
Ganapathi Subramanian
el 26 de Abr. de 2023
Hi Basem,
It is my understanding that you are trying to integrate acceleration to obtain velocity and displacement using ‘cumtrapz’ function. The velocity and displacement graph looks fine. It looks as exponentially decreasing because the acceleration graph is predominantly negative.
You can also add a high pass filter to the acceleration data for baseline correction. But be careful in selecting cut off frequency as higher value leads to loss in valuable information from data.
You can also refer the below file exchange to convert acceleration to velocity and displacement.
0 comentarios
Oskar Kilgus
el 6 de Jul. de 2023
Hi Basem,
if you are sure that the displacement is not meaningfull (because you know the properties of the physical system observed), i would suggest to have a look into the frequency domain. Maybe you could work with a highpass filter to "detrend" your data from low-frequency disturbances as these may cause drifts in integrated signals.
0 comentarios
Ver también
Categorías
Más información sobre Search Path en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!