Im trying to solve a system of ode's
dx/dt = alpha(x) – beta (xy) dy/dt = gamma (xy) – delta(y)
where alpha beta gamma and delta are known variables (1,2,4,3) and x0= 1, y0 = 2 this is my code so far:
% code
syms f(t) g(t)eqn1 = diff(f) == 1*f - 2*f*g;eqn2 = diff(g) == 4*f*g - 3*g;S = dsolve(eqn1, eqn2)[fSol(t), gSol(t)] = dsolve(eqn1, eqn2)c1 = f(0) == 1;c2 = g(0) == 2;[fSol(t), gSol(t)] = dsolve(eqn1, eqn2, c1, c2)fplot(fSol)hold onfplot(gSol)grid onlegend('fSol','gSol','Location','best')end
matlab keeps giving the the error 'explicit solution could not be found'
Best Answer