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

Matlab Help Input argument undefined

  1. Jan 31, 2008 #1
    Dear all. I am trying to solve an ODE in MATLAB using ODE45 solver. But the programe keep saying

    ??? Input argument "y" is undefined.

    Error in ==> lvv at 4

    Can anybody be of help? Please.

    The complete code is this:
    function yprime=lvv(t,y)
    %LV: Contains Lotka-Volterra equations
    [t,y]=ode45(@lvv,[0 20],[30;4])
  2. jcsd
  3. Jan 31, 2008 #2


    User Avatar

    When you call the function do you provide the matrices t and y? If not, the function does not know what y is.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?