1st order differential equation
Show older comments
i am trying to solve this differential equation and the solution i get it is wrong so where is the error? and this my function dy/dt=k*y*ln(450/y) y(0)=40 and y(15)=95 and k is constant and this my MATLAB
tspan = [0 300];
y0 = 40;y15=95;
[t,y] = ode45(@(t,y) 'k'*y*exp(450/y), tspan, y0,y15);
plot(t,y,'-o')
Accepted Answer
More Answers (1)
This is a boundary value problem - use "bvp4c" instead of "ode45".
Or try "dsolve".
Best wishes
Torsten.
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!