HOW TO SOLVE 2 EQUATION ODE USING ODE45 IN MATLAB?
1 回表示 (過去 30 日間)
古いコメントを表示
My equation is
I need to solve it by using ODE45. I dont know how to put in my matlab coding since it have 2 equation.
Thanks in advance for your help.
2 件のコメント
James Tursa
2021 年 6 月 7 日
What have you tried so far? What specific problems are you having with your code? Have you looked at the examples in the ode45 doc for how to handle multiple equations?
回答 (1 件)
Stephan
2021 年 6 月 8 日
f = @(t,y) [0.303*y(1)-0.557*y(1).^2+0.260*y(2).*y(1);...
0.0345*y(2)-1.18e-7*y(2).^2+3.55e-14*y(1).*y(2)];
Y0 = [0.0718,0.225];
tspan = [0 5];
[T,Y] = ode45(f,tspan,Y0);
plot(T,Y)
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!