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.

채택된 답변

Bjorn Gustavsson
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
  댓글 수: 1
PRAJWAL PRABHU
PRAJWAL PRABHU 2020년 5월 4일
Thank you sir. It is very helpful. I got an idea as to how should i proceed further

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by