ODE Solver in matlab

6 ビュー (過去 30 日間)
nabi arjmandi
nabi arjmandi 2021 年 3 月 20 日
編集済み: nabi arjmandi 2023 年 4 月 28 日
HI

回答 (1 件)

darova
darova 2021 年 3 月 22 日
Here is a start. But don't know how to write 3d and 4th initial guess
f = @(t,x) [x(2); -C2/C1];
fb = @(p0,pt) [(1-gamma)*pt(1)-(xt+1+lambda)*pt(2)
(1-gamma)*p0(1)-(x0+1)*p0(2)
% dont know how to write 3d
% dont know how to write 4th];
solinit = bvpinit(0:0.1:5, [1 1 1 1]); % t span and initial guess
sol = bvp4c(@f, @fv, solinit); % solve equation

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by