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!