I am using matlab for a Differential Equations course and keep getting this error when i try to plot this ode45 function:
??? Input argument "x" is undefined.
Error in ==> F at 3
here is the code:
I really dont know why matlab keeps telling me 'x' is undefined. Any help would be appreciated!
I tried, using the lowercase f didnt work. The same "undefined x" error occured. I saw someone w/ a similar prob on another forum and a seperate m file (an instruction file?) containing a 'for' statement was suggested to define x. Im a novice, I have no clue how to do that for this prob. this is the for statement they posted:
so, do i need a seperate m file defining x?