How does ode23 works?
12 ビュー (過去 30 日間)
古いコメントを表示
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);
0 件のコメント
採用された回答
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
2019 年 12 月 12 日
Depending on your mathematical background, the chapter on ODEs in Cleve's Numerical Computing with MATLAB may provide sufficient explanation.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!