ODE45 for nonlinear problem
Mostra commenti meno recenti
kindly check the below code....
2 Commenti
madhan ravi
il 14 Giu 2020
Could you post the equation in LaTeX form?
chiyaan chandan
il 27 Giu 2020
Risposte (1)
darova
il 14 Giu 2020
- avoid global. YOu can make nested function in your case
function linear_vs_nonlinear
% variables
% code
function SD_L=linear(t,s)
% code
end
end
- you have 4 equations, but only 2 initial conditions

- some operators are forgotten (multiplier i think)

6 Commenti
chiyaan chandan
il 27 Giu 2020
Modificato: darova
il 28 Giu 2020
darova
il 28 Giu 2020
The code looks correct. I think you formulas are strange. Why displacement and velocity are in power 3?

I didn't understand what if f? Where is expression for it and why did you substituted x,v and a?
chiyaan chandan
il 28 Giu 2020
chiyaan chandan
il 28 Giu 2020
darova
il 29 Giu 2020
How do you know that
? Usually
and
are uknowns if you have ODE.
and
should be given
chiyaan chandan
il 22 Lug 2020
Categorie
Scopri di più su Ordinary Differential Equations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!