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!