too many input arguments ode45
Show older comments
I am using an example pulled directly from ode45 documentation.
tspan = [0 5];
y0 = 0;
[t,y] = ode45(@(t,y) 2*t, tspan, y0);
results in:
Error using ode45
Too many input arguments.
I've been trying to solve a system of differential equations using ode45. I'm not sure if this is a software bug or something, but ode45 continues to result in too many arguments. The code above is copied directly from ode45 documentation. Similarly, when I use a different example pulled directly from https://www.mathworks.com/help/matlab/ref/ode45.html
I get:


1 Comment
It sounds as if you have defined your own ode45 function, which is shaodowing the inbuilt one. Please show us the output of this command:
which ode45 -all
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!