How can i take double integral of a second derivative?

1 view (last 30 days)
I am working on a problem in which I am taking the equations of motion of a quadcopter and applying PD control on them. As the result, I am getting the second derivatives of x,y and z. But I need the z value which is the displacement in z direction from the second derivative of z( its acceleration). I saw a simulink model where they took they placed the values through a integrator. Can I do something similar in my code?
Any help is appreciated.
Thanks.

Answers (0)

Community Treasure Hunt

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

Start Hunting!