HOW TO SOLVE THIS FUNCTION?
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
how to solvethis problem by matlab?thanks
y'=-2y+2x^2+2x y(0)=1
y(0.5)=??
Antworten (1)
Andrei Bobrov
am 28 Nov. 2013
Bearbeitet: Andrei Bobrov
am 28 Nov. 2013
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))
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!