MATLAB Answers

Info

This question is closed.

0

Differential equation(1st order)

Asked by Takey Asaad on 16 Sep 2018
Latest activity Closed by Walter Roberson
on 16 Sep 2018
my function is
dy/dt=k*y*exp(450/y)
k is constant and y(0)=40 and y(15)=95 solve this equation by using ode45 can someone pleaseeeeeeeeeee check the code and make it work .
tspan = [0 300]; y0 = 40;y15=95 [t,y] = ode45(@(t,y) 'k'*y*exp(450/y), tspan, y0,y15); plot(t,y,'-o')

  3 Comments

How is this question different from this one: https://de.mathworks.com/matlabcentral/answers/419103-ode45-differential-equation (which is answered already)?
If the answers you got are not helpful for you leave a comment to the answer.
Do not ask the same question again - usually duplicates will be closed by the contributers.

Sign in to comment.

0 Answers