Probably you may have a function file named F/ode23 please delete it or rename it , your code works perfectly fine.
[t,y]=ode23( @(t,y) y ,[0 1], 1) % can also use ode45
what shows up for
which ode23 -all
which F -all
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!