How do i solve non linear DE in matlab
1 view (last 30 days)
Show older comments
Ashvin Bhat
on 10 Feb 2022
Answered: Abraham Boayue
on 11 Feb 2022
Accepted Answer
Abraham Boayue
on 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 Comments
More Answers (0)
See Also
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!