The scripts in integrate_th.zip integrate an acceleration time history to a velocity time history and/or a velocity time history to a displacement time history.
The main script is: integrate_th.m
The remaining scripts are supporting functions.
Integrating acceleration to velocity typically causes a spurious offset in the velocity signal, which in turn causes a “ski slope” effect in the resulting displacement signal.
So options are included for fading, trend removal, and mean filtering. These options must be used with “engineering judgment.”
* * *
Here is a script for differentiating a time history differ.m
* * *
These scripts in acceleration_correction.zip correct an acceleration time history so that its corresponding velocity and displacement time histories each oscillate
about the zero baseline.
The main script is: acceleration_correction.m
The remaining scripts are supporting functions.
* * *
– Tom Irvine