ode45 where odefun requires more parameters
https://www.mathworks.com/matlabcentral/answers/168073-ode45-where...25.12.2014 · If I understand correctly, what you want to do is a common way of passing extra parameters to your ODE function. To use it with ode45, you only pass the ODE solver the ‘t’ and ‘y’ variables: [t,y] = ode45 (@ (t,y) odefun (t,y,a,b,c), tspan, ic); Note that ‘a’, ‘b’, and ‘c’ have to exist in your workspace. Sign in to answer this question.
ODE45 with a parameter which changes in every time step -
https://www.mathworks.com › 229...Learn more about ode45 with a parameter which changes in every time step. ... in MATLAB Mobile. R,T1 ,T2,k0,ME,MS,m,E0,sigma,E1,E2,Y0 are input parameters.