Date: Jun 20, 2013 2:29 AM
Subject: Re: Can not pass variable to ode45
"Sandip" wrote in message <email@example.com>...
> Please suggest a way... I have a command as below to solve the ode by ode45 and I need to pass three variables.
> I have defined the function in .m file as
> function yprime = fnode(x,y,c1,c2,c3)
> However, I can not read in the c3 in the function (ode) file. c1 & c2 are coming alright.
> Please help.
But I already gave you the solution ...
Call ode45 as
and define the function in an .m file as
function yprime = fnode(x,y,c1,c2,c3)