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!