필터 지우기
필터 지우기

How to solve this odearguments error when trying to use 'ODE45' command?

조회 수: 4 (최근 30일)
Wei Zhang
Wei Zhang 2021년 3월 20일
댓글: Wei Zhang 2021년 3월 21일
I got an error:
Error in ode45 (line 115)
odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options, varargin);
Error in solution (line 9)
[t,x] = ode45('func',[0 5],[0 0]);
My code is:

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 3월 21일
Your syntax is wrong. You are passing in a character array to ode45, not a function.
Use @func instead of 'func'.
See the examples on this page for more.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by