Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab- input arguments of type 'double' ?

  1. Sep 11, 2008 #1
    Matlab- input arguments of type 'double' ????

    Hi there, I was wondering if anyone could help me.

    Yesterday I wrote the command [z,r]=ode45(@rad03,[0,10],0); and it worked but today I am writing exactly the same thing but keep getting the message:

    ???Error using ==>feval
    Undefined function or method 'rad03' for input arguments of type 'double'.

    Error in ==>funfun/private/odearguments at 110

    and some more error messages. Why would it work yesterday and not today? Does anyone know what I am doing wrong?

    Any help would be much appreciated!
  2. jcsd
  3. Sep 11, 2008 #2


    User Avatar
    Science Advisor
    Gold Member

    Re: Matlab- input arguments of type 'double' ????

    The error message means that Matlab can not find the file rad03.m (assuming the function rad03 is located in a file with the same name).

    Could it be that you are not in the right directory?
  4. Sep 12, 2008 #3
    Re: Matlab- input arguments of type 'double' ????

    yes it could, thanks!
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook