I want to solve the above system of differential equation and plot s(t) and i(t), tried the following: (where beta=0.9, mu=0.015 and gamma=0.3, time step[0, 300], initial value for s(0) and i(0) are 0.4 and 0.6)
%
syms s(t) i(t)eqn1 = diff(s) == -0.9*i*s+0.015-0.015*s;eqn2 = diff(i) == 0.9*i*s-(0.3+0.015)*i;c1 = s(0) == 0.4;c2 = i(0) == 0.6;[sSol(t) iSol(t)] = dsolve(eqn1, eqn2, c1, c2)
But it doesn't work / return [ empty sym ] Anyone know why please??
Your help means a lot to me, thanks!!
Best Answer