How do i solve non linear DE in matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Ashvin Bhat
il 10 Feb 2022
Risposto: Abraham Boayue
il 11 Feb 2022
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/890720/image.png)
Risposta accettata
Abraham Boayue
il 11 Feb 2022
%Here is the required ode45 code.
clear variables
close all
xspan = [0 10];
y0 = 1;
[t,y] = ode45(@(x,y)x.*y.^5+x.*cos(y), xspan, y0);
plot(t,y,'linewidth',2.5)
a = title('y(x) from ode45');
set(a,'fontsize',14);
a = ylabel('y');
set(a,'Fontsize',14);
ylim( [0 10]);
grid
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Ordinary Differential Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!