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.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/406363-integrating-velocity-data-with-cumtrapz#comment_580184
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/406363-integrating-velocity-data-with-cumtrapz#comment_580184
Sign in to comment.