필터 지우기
필터 지우기

Give Output of one ODE to the another ODE simultaneously

조회 수: 3 (최근 30일)
Karthi Ramachandran
Karthi Ramachandran 2020년 10월 11일
댓글: Alan Stevens 2020년 10월 12일
I have the equations as follows
and
What I have to do is integrate and supply the output to sumlatenously at each time step as gets integrated and this must happen in a speciafic time inteval.
Is there a way to do in code?
Eg - If gets integrated from 0 to witha a constant θ and at time , the value of theta must be taken from intgrated . This must happen simultaneously.

답변 (1개)

Steven Lord
Steven Lord 2020년 10월 12일
Use the "Nonstiff Euler Equations" example on this documentation page as a model for your ODE function.
  댓글 수: 3
Steven Lord
Steven Lord 2020년 10월 12일
You have a system of two differential equations. Solve them simultaneously just like that example solves three differential equations simultaneously.
Alan Stevens
Alan Stevens 2020년 10월 12일
Your theta equation is independent of x, so you could integrate this separately (in fact, it has an analytical solution), then use the result in the x integration routine.

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

카테고리

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

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by