简体   繁体   中英

How to solve differential equation in matlab

How can I show that y(t)=Yo/Yo+(1-Yo)e^-at is the solution of the differential equation dy/dt=ay(1-y) using MATLAB. What function should I use?

if you want to simulate the results use the ode's family

https://www.mathworks.com/help/matlab/ref/ode45.html

else you can define your equation in syms and use diff

https://www.mathworks.com/help/symbolic/diff.html

other wise you can solve it numerically

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM