フィルターのクリア

Boundary value problem with bvp4c

3 ビュー (過去 30 日間)
Didarul Ahasan Redwan
Didarul Ahasan Redwan 2020 年 4 月 7 日
コメント済み: Ameer Hamza 2020 年 4 月 8 日
Ive attached my bvp4c code. I want to genare the figure im showing here, but im am not getting the desired graph .
I am attaching both desired graph and coupled equations with boundary condition.
I would be very helpfull for your help.

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 7 日
There were issues in your ODE function and the BC function. Replace them with these defintions.
function res = bc(ya,yb)
res = [ ya(1); ya(2)-1; ya(5)-1; yb(2); yb(3); yb(5)];
end
function dydx =jeffrey_fluid(x,y)
M=1;ga=5;la=1;beta=2;Pr=0.7;
dydx = [y(2);
y(3);
y(4);
-1/y(1)*(-1/beta*((1+la)*(y(1)*y(3)-y(2)^2-y(2)*(ga+M)+la*y(5))-y(4))-y(3).^2);
y(6);
-Pr*(y(1)*y(6)-y(2)*y(5))];
end
  2 件のコメント
Didarul Ahasan Redwan
Didarul Ahasan Redwan 2020 年 4 月 7 日
thanks a lot ...<3
Ameer Hamza
Ameer Hamza 2020 年 4 月 8 日
Glad to be of help.

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

その他の回答 (0 件)

カテゴリ

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