Auxilio problemas con ODE
Publicado por erika (2 intervenciones) el 04/06/2009 23:01:15
Tengo problemas con ODE45, Esta es la funcion:
function gp= ode3(g,Gb,Ragrid,Xgrid,Sg,V)
gp=(-Sg-Xgrid)*g+Sg*Gb+Ragrid/V;
Así la estoy llamando:
[t,ge]=ode45(@ode3,t,g0,[],Gb,Ragrid,Xgrid,Sg,V);
Y me sale el siguiente error:
??? Error using ==> ode3
Too many input arguments.
Error in ==> odearguments at 111
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ==> ode45 at 173
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Por favor quién me pueda ayudar
saludos
erika
function gp= ode3(g,Gb,Ragrid,Xgrid,Sg,V)
gp=(-Sg-Xgrid)*g+Sg*Gb+Ragrid/V;
Así la estoy llamando:
[t,ge]=ode45(@ode3,t,g0,[],Gb,Ragrid,Xgrid,Sg,V);
Y me sale el siguiente error:
??? Error using ==> ode3
Too many input arguments.
Error in ==> odearguments at 111
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ==> ode45 at 173
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Por favor quién me pueda ayudar
saludos
erika
Valora esta pregunta


0