Please help me with code for the below ode
Afficher commentaires plus anciens

6 commentaires
Alex Mcaulley
le 26 Août 2019
What have you tried so far?
Torsten
le 26 Août 2019
Where is the ode for y ?
Karthik K
le 26 Août 2019
darova
le 26 Août 2019
Can you please attach your equations?
Why are you using constants for xx and yy?

Karthik K
le 27 Août 2019
Walter Roberson
le 27 Août 2019
You have
function f = forced_coulomb_base(t,x,y)
so forced_coulomb_base expects to be passed three variables.
You have
[t,x,y]=ode45(@forced_coulomb_base,tspan,x0,y0);
ode45 passes two parameters to the function: the independent variable in the first parameter, and the boundary conditions in the second parameter.
You cannot calculate two separate ode by passing them as additional parameters and expecting additional outputs: all boundary conditions must be passed in a single variable, and all calculations must be returned in a single variable.
Réponses (0)
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
