ODE 45 too many input arguments

3 views (last 30 days)
MJS
MJS on 10 Nov 2015
Commented: Torsten on 10 Nov 2015
I am working on this code and i can not find any reason as to why this error appears when I run it.
Error using ode45 Too many input arguments.
Error in ode45 (line 10) [t,y]=ode45(@rhs,[VV], [0;0],[]); Any help would be great. thanks

Answers (1)

Torsten
Torsten on 10 Nov 2015
Use
[t,y]=ode45(@rhs,[VV],[0 0]);
Best wishes
Torsten.
  2 Comments
MJS
MJS on 10 Nov 2015
I input that code just as you have it and it still gave me the same error. Any idea on how to fix it?
Torsten
Torsten on 10 Nov 2015
[t,y]=ode45(@rhs,VV,[0 0]);
Best wishes
Torsten.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!