MATLAB Answers

Integration of Velocity data to Displacement

20 views (last 30 days)
Angelos Mongolias
Angelos Mongolias on 12 Nov 2019
Commented: Angelos Mongolias on 12 Nov 2019
Hello,
I have some velocity (seismic) data and i want to convert them to displacement.
The sampling rate is 1000Hz so that means that if I want to find the displacement for 1 sec
I have 1000 values.
There is a list of commands that I can use but I am not sure which one suits to my case.
I just need to convert a list of data.
Any proposals?

  0 Comments

Sign in to comment.

Answers (1)

Daniel M
Daniel M on 12 Nov 2019
Edited: Daniel M on 12 Nov 2019
Use cumtrapz as in
displacement = cumtrapz(velocity)/fs; % where fs is your sampling rate
Then you can assess afterwards if the accuracy is suitable for your application or whether you need a different method.

Community Treasure Hunt

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

Start Hunting!

Translated by