function handle how to apply to dsolve???
显示 更早的评论
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????
采纳的回答
更多回答(1 个)
Torsten
2017-11-23
0 个投票
Use function handles if you want to integrate numerically, use symbolic expressions if you want to integrate symbolically.
Best wishes
Torsten.
类别
在 帮助中心 和 File Exchange 中查找有关 수치 솔버 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!