Problem in ezplot with simple equation

15 ビュー (過去 30 日間)
Camilo Sánchez
Camilo Sánchez 2018 年 4 月 23 日
コメント済み: Star Strider 2018 年 4 月 23 日
s=dsolve ('Dy=(t+y)^(1/2)','y(0.4)=0.41')
ezplot(s,[0.4,10])
Whats wrong???

採用された回答

Star Strider
Star Strider 2018 年 4 月 23 日
Not all differential equations have analytical solutions. Fortunately, ode45 will integrate this without problems:
DE = @(t,y) (t+y)^(1/2);
[T,Y]= ode45(DE, [0.4 10], 0.41);
figure(1)
plot(T,Y)
grid
  2 件のコメント
Camilo Sánchez
Camilo Sánchez 2018 年 4 月 23 日
Thanks
Star Strider
Star Strider 2018 年 4 月 23 日
As always, my pleasure.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by