Solve a system of odes where equations are derived from a separate code (not directly given) using syms function

조회 수: 1 (최근 30일)
Hi i have to solve a system of 10 differential equations, however the equations are not directly given to me.
I have to derive the equations with the help of a separate code (basically enegy balance across 10 adjacent layers). I have used syms function to initially define all the temperatures as a function of time and then written their respective equations such that the result of this code helps me to identify my equations (such that dT1/dt = f(T1,T2,T3----T1(1),T1(2), in other words when i display my equations, the derivative of temperature wrt to time is a function of temperatures of the layers and also temperature of the particular layer at a particular time)
Now I would like to know how to use solve these equations simultaneously . What solver to use, I tried using ode45, but am not able to call the variable appropriately such that it suits the format.
  댓글 수: 1
Torsten
Torsten 2019년 5월 10일
편집: Torsten 2019년 5월 10일
Then you will have to adjust your format that it fits the input expected by ode45.
Since we don't see the code that generates your differential equations, we can't help you in this respect.

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

채택된 답변

Stephan
Stephan 2019년 5월 10일

추가 답변 (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