function handle how to apply to dsolve???
Ältere Kommentare anzeigen
syms t y
yp=@(t,y) y-t.^2+1;
exact=dsolve( 'Dy=yp(t,y)', 'y(0)=0.5');
abso=abs(diff(exact,2));
Explicit solution could not be found.
> In dsolve (line 201)
how to change code????
Akzeptierte Antwort
Weitere Antworten (1)
Torsten
am 23 Nov. 2017
0 Stimmen
Use function handles if you want to integrate numerically, use symbolic expressions if you want to integrate symbolically.
Best wishes
Torsten.
Kategorien
Mehr zu 수치 솔버 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!