solution to non homogenous time dependent differetial equation using ODE45
1 次查看(过去 30 天)
显示 更早的评论
I looking to solve the control of planar 2r manipulator for which i need to solve the differential equation using ODE 45.
11.426*y"(t)+(11.426+12.456*cos(y(t)))x"(t)+(12.456*sin(y(t)))*(x'(t))^2+12.456*cos(x(t)+y(t))
i am unsure as to how to write it in matlab, as it is a second order equation and matlab accepts only first order differential equation. Need some help in this regard.
0 个评论
采纳的回答
Bjorn Gustavsson
2020-5-3
You can convert a second order ODE to two coupled first order ODEs:
can be split up into 2 by introducing a second variable, v, that is the first derivative of y:
You can extend this to your 2-variable 2nd-order ODE, just take it step-by-step. One problem more: I don't see the ODE, you've just written an expression with a couple of derivatives, you need to have a look on that.
HTH
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!