![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/189805/image.png)
Integrating velocity data with cumtrapz()
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I have a quite long vector with the longitudinal velocity data of a car. As it only drives forward, there are no negative values. However, when I integrate the vector using cumtrapz() the calculated data which are supposed to be the traveled distance, are also decreasing and even becoming negative.
Used Timestamps for cumtrapz are 0:0.01:59.53 The velocity vector is attached.
Thanks in advance! -Fabian
1 Kommentar
Antworten (1)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!