Error using odearguments???
조회 수: 3 (최근 30일)
이전 댓글 표시
What does this error message mean?
??? Error using ==> odearguments at 120
Inputs must be floats, namely single or double.
Error in ==> ode45 at 172
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Error in ==> Testfunction at 32
[t,x] = ode45(@somefn, tspan, x0);
Thanks in advance for any help!
댓글 수: 0
채택된 답변
Jan
2012년 3월 28일
The message means, that the subfunction odearguments recieves non-float values, although it needs this type. The message is actually clear in this point.
Are tspan or x0 both floating point types? You can check this by:
class(tspan)
class(x0)
댓글 수: 3
Jan
2012년 3월 28일
What did you type in at the input prompts? Perhaps variables, which have been declared as SYMs before?
추가 답변 (1개)
shobhit kumar
2013년 12월 25일
i have the same problem but when i check class of x0 and tspan it is double than why i got the same error
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!