I have a use case as follows:
Inside F.m I have a function F that takes as its argument a 2 x 1 matrix x. F
F.m
F
2 x 1
x
I believe F in ode45(F,...) should be a function handle, i.e. @F. Also, you can have a look at this page of the MATLAB documentation for different methods to pass extra parameters to functions.
ode45(F,...)
@F