ode45 too many input arguments
7 views (last 30 days)
so i got a function which i did as home work a few days ago tested it ,it ran ,now it doesn't want to run anymore i don't know how to fix it ,because i want to do a few more examples of ode45 and i get same error . The files have not been opened/modified since i wrote/tested them .
the function (which is saved correctly)
and the script
plot(x,y);grid on ; axis tight;
Star Strider on 10 Dec 2020
To use your original construction, the single quotes are no longer acceptable..
However ‘ec1L10’ can be written as an anonymous function:
ec1L10 = @(x,y) 4*exp(0.8*x)-0.5*y;
so the rest of that code becomes: