HOW TO SOLVE THIS FUNCTION?

how to solvethis problem by matlab?thanks
y'=-2y+2x^2+2x y(0)=1
y(0.5)=??

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2013년 11월 28일
편집: Andrei Bobrov 2013년 11월 28일

0 개 추천

Please read about dsolve :
doc dsolve
Your case:
syms x y(x)
yy = dsolve(diff(y) == -2*y + 2*x^2 + 2*x, y(0) == 1);
out = vpa(subs(yy,x,.5))

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

질문:

2013년 11월 28일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by