I have been trying to use cumtrapz function to integrate velocity at a given time interval to get the position. However, it keeps giving me zero position at the beginning and end of the iteration, which is not what I expect. Can anyone help? Thank you
it keeps giving me zero position at the beginning and end of the iteration
- It only returns one value, the cumulative integral, so I don't understand what you mean when you say it gives you zero at the beginning and end. As @FooTheBar mentioned, it would be helpful to see your code. $\endgroup$