Hello I want to solve ode system at two domain by bvp4c at matlab and I need two initially gusset for two domain because any domain have different value and I must writ two initially gusset for bvpinit and I don't known what do I do about this problem.

 採用された回答

Torsten
Torsten 2015 年 11 月 12 日

0 投票

Use an if-statement depending on the spatial coordinate:
Example:
solinit = bvpinit(linspace(0,pi,10),@mat4init)
function yinit = mat4init(x)
if x<pi/2
yinit = 0;
else
yinit = 1;
end
Best wishes
Torsten.

その他の回答 (1 件)

Mostafa Mostafa
Mostafa Mostafa 2015 年 11 月 13 日

0 投票

Thank you. Your answer is very useful I have another question
I want solve two systems equation by bvp4c in matlab at one domain. the two systems couple together and I must be solved simultaneously and one system is nonlinear algebraic equation system and another system is ordinary diffrantioal equation system.how do I define nonlinear algebraic equation system at bvp4c in matlab ???? Please write an example about my problem I wish best you and your company (like)

1 件のコメント

Torsten
Torsten 2015 年 11 月 13 日
As far as I know, bvp4c can not solve a mixture of differential and algebraic equations.
Maybe you could post your equations to see if there is another possibility for solving.
Best wishes
Torsten.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Programming についてさらに検索

質問済み:

2015 年 11 月 11 日

コメント済み:

2015 年 11 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by