ODE45 for nonlinear problem
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
kindly check the below code....
2 Kommentare
Antworten (1)
darova
am 14 Jun. 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315606/image.png)
- some operators are forgotten (multiplier i think)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/315609/image.png)
6 Kommentare
darova
am 29 Jun. 2020
How do you know that
? Usually
and
are uknowns if you have ODE.
and
should be given
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323635/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323638/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323641/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323644/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/323647/image.png)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!