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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

질문:

2018년 4월 23일

댓글:

2018년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by