필터 지우기
필터 지우기

ODE45/ODE15 inquiry about nonlinear spring

조회 수: 1 (최근 30일)
haohaoxuexi1
haohaoxuexi1 2021년 11월 25일
편집: haohaoxuexi1 2021년 11월 30일
Is there anyone can help me on how to get an ODE45/ODE15 program to solve the above equation?
I want to get the value of y1 and y2.
Thanks,

채택된 답변

Star Strider
Star Strider 2021년 11월 25일
Since the system appears to describe a differential-algebraic equation, see the documentation section on Solve Differential Algebraic Equations (DAEs) that describes how to set it up symbolically in order to use ode15i to integrate it numerically.
.
  댓글 수: 2
haohaoxuexi1
haohaoxuexi1 2021년 11월 25일
Can you provide me with an example with second order derivative?
Thanks,
Star Strider
Star Strider 2021년 11월 26일
Use the odeToVectorField function. The documentation should provide all the necessary examples.

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

추가 답변 (1개)

KSSV
KSSV 2021년 11월 25일
  댓글 수: 1
haohaoxuexi1
haohaoxuexi1 2021년 11월 25일
편집: haohaoxuexi1 2021년 11월 25일
Would you mind to take a look at my equation?
I don't have the second order derivative term in equation#1.
And if possible, please tell me how to code it in ODE45/ODE15 to achieve my purpose?
In your example, you have theta and X, both of them have second order derivative term.
Thanks.

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

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by