ODE45 with changing variables

조회 수: 12 (최근 30일)
daniel
daniel 2023년 12월 8일
댓글: Star Strider 2023년 12월 8일
I’m trying to use ode45 to solve a for the location of a balloon. I have system of 3 second order ODEs (displacement and velocity in 3D). I’ve converted them to 6 first order ODEs and I want to solve using ODE45. The issues is that my equations depend on factors like wind velocity, temperature, pressure etc that are stored in an array. When using a 4th order runga kutta I simply found these values by looking up the values at the ballon coordinates and then using those in the equations. I’m not sure how to do this though for ODE45.
  댓글 수: 2
Star Strider
Star Strider 2023년 12월 8일
I am not certain what question you are asking.
One possibility is to see the discussion in ODE with Time-Dependent Terms to see if that does what you want.
daniel
daniel 2023년 12월 8일
yes, that should help. Thank you

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

채택된 답변

daniel
daniel 2023년 12월 8일
Solution found here https://www.mathworks.com/help/matlab/ref/ode45.html?s_tid=doc_ta#bu3l43b
  댓글 수: 1
Star Strider
Star Strider 2023년 12월 8일
I should have poosted my Comment as an Answer!

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by