Problem in ezplot with simple equation

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 日

0 投票

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 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by