My odefun.m has the following input structure:
function dy = odefun(t,y,a,b,c)
I want to use ode45 to integrate the ODE, but I need to see an example where the odefun takes in more than just t & y.
Please bear in mind that I've already read the following, and many more:
8. http://www.mathworks.com/matlabcentral/answers/47623-bugfixing-for-ode45-too-many-input-arguments
I've also read about arguments for function handles, "anonymous functions" and much more.
I believe that now it would be most constructive if someone could please just provide an example.
Best Answer