I am trying to solve a non linear differential equation which is df/dt=-.3223+(1/9)*(175.9384/f) through using this command :
dfdt=@(t,f) -.3223+(1/9)*(175.9384/f);
[tv,fv]=ode45(dfdt,[0 5],59.9581);
plot(tv,fv)
Why i am getting linear plot here?

 Akzeptierte Antwort

David Goodmanson
David Goodmanson am 25 Nov. 2019
Bearbeitet: David Goodmanson am 25 Nov. 2019

0 Stimmen

Hi Muhammad,
with that set of constants, the time has not been run out far enough to see the final result. Try changing the time limits to, say, [0 2000]. Then you can see f approach its asymptotic value (df/dt = 0) of
175.9384/(9*.3223)
ans = 60.6538

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by