pass output between two ode15s
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
hello
I want to pass output from ode15s in any time step. for example I have two function
xdot2+xdot=Vo (function1)
Vodot+Vo=x+sin(t) (function2)
I doesn't want to use 1 ode15s and combine my function.I want to use 2 ode15s
in time step t(i) must be calculate x(i) is 1th ode15s
[x,t]=ode15s(function1,[tspan],x0)
then call back this x(i) to 2th ode15s to calculate Vo(i)
[Vo,t]=ode15s(function2,[tspan],x0)
and iterate this procedure to t(end)
Would you please help me how can I do this?
Réponses (0)
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!