Info

この質問は閉じられています。 編集または回答するには再度開いてください。

ode45 and ode 23 plot

4 ビュー (過去 30 日間)
baran erbas
baran erbas 2019 年 5 月 26 日
閉鎖済み: John D'Errico 2019 年 5 月 26 日
I asked this question before but i can't solve this. The question is Suppose we have a differential equation dy/dx=-2x+4y^2 over the range x=0 to 1 with y(0)=0.Solve with ode23 and ode45 and plot graphs?
function xl=H(x,y)
xl=zeros(2,1);
xl(1)=x(2);
xl(2)=-2*x+4*y^2;
[y,x]=ode45['H',[0,1],[0,1]];
I tried this but i think it is totally wrong. I don't understand this ode function so please help me. My teacher want solution with function but i can't solve and there is no any example like this question.
  1 件のコメント
John D'Errico
John D'Errico 2019 年 5 月 26 日
You asked it. You got a complete answer, far more than I would have given to you. So ask for more help there.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by