numeric integration of datapoints
Ältere Kommentare anzeigen
I have time (dt) acceleration (Acc) data points. I need to plot velocity (vel) and displacement (disp) vs time and also calculate peak velocity (V_max) and peak displacement (d_max). I have used "cumtrapz" to do so as below:
vel=cumtrapz (dt,Acc); % velocity
disp=cumtrapz(dt,vel); % displacement
v_max=max(vel);
d_max=max(disp);
However, the peak velocity and displacement are not accurate. Is there a way to approximate them more accurately?
3 Kommentare
Walter Roberson
am 26 Mai 2019
How do you know that your calculated values are not accurate?
Mos_bad
am 26 Mai 2019
Walter Roberson
am 26 Mai 2019
trapazoid rule is about the best numeric integration you can get when you do not have a model function. Earthquake movement studies have developed some model functions, and so can improve on trapazoid rule in some cases.
Antworten (0)
Kategorien
Mehr zu Earthquake Engineering finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!