How to solve two differential equations

3 次查看(过去 30 天)
I wrote this to solve two differential equations but does'nt work
clc
clear
syms B(t) S(t)
K=0.000001;
k=0.3;
DB=diff(B);
DS=diff(S);
eq1=DB==k*B*S/(K+DS);
eq2=DS==-0.75*k*B*S/(K+S);
cond=[S(0)==5,B(0)==0.05];
[B,S]=dsolve([eq1,eq2],cond)
  1 个评论
Torsten
Torsten 2021-12-27
编辑:Torsten 2021-12-27
I doubt there is an analytical solution for your system because of the S and DS-terms in the denominators.
Use one of the numerical integrators instead, e.g. ODE45, ODE15S.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by