How does ode23 works?

조회 수: 17 (최근 30일)
Clarisha Nijman
Clarisha Nijman 2019년 12월 12일
댓글: Clarisha Nijman 2019년 12월 13일
Hello,
I want to solve a system of linear equations in matlab. From internet I created a function for my system of equations and in a test script I am applying the ode23 matlab code on that function. In mine opinion it works perfect.
But I really would like to understand how the ode23 code in matlab works together with the function containing the system of equations without giving the arguments to the function.
This is my function:
function [Dv_Div]=ODE_Examples(I, D)
x=D(1);
y=D(2);
z=D(3);
%The system of equations equations
Dv_Div=[x-z;2*x+3*y+z;y+z];
end
This is the script:
domain=[0 10];
InitConditions=[1 2 0];
[IVsol2,DVsol2]=ode23('ODE_Examples', domain, InitConditions);

채택된 답변

John D'Errico
John D'Errico 2019년 12월 12일
Literally impossible to answer. A copmplete answer would involve teaching a class on numerical methods for ordinary differential equations. So you might consider reading a book, or taking a class, if you have never done so. If you have taken any class at all that teaches methods like Euler's method for ODEs, then you already know the basics, at least some of them. Tools like ODE23, ODE45, etc., just use higher order methods, together with methods for adjusting the step size as needed.
If you are looking for specifics on the methods found in ODE23, then read the docs for ODE23. That points to a reference by Bogacki and Shampine.
  댓글 수: 3
Steven Lord
Steven Lord 2019년 12월 12일
Depending on your mathematical background, the chapter on ODEs in Cleve's Numerical Computing with MATLAB may provide sufficient explanation.
Clarisha Nijman
Clarisha Nijman 2019년 12월 13일
Many thanks, I just started. Quite interesting!

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

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