How to use ode45 in this case?
3 views (last 30 days)
Show older comments
Hello,
I have the variable ydd (y double dot) that I want to integrate twice to get the variable y.
The formula of ydd is:
ydd = -tan(phi).*(zdd + gravity)
where
phi
,
zdd
are vectors of size
(1 xn)
containing different angles and accelerations at each time instant.
And,
gravity
也是一个向量的大小
(1 xn)
containing a constant value (which is 9.81) repeated n times.
So, ydd is also a
(1 xn)
vector containing different accelerations at each time instant.
How can I use ode45 to integrate ydd twice?
Thank you for taking the time to read my question.
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!