MATLAB: Not able to solve an ode using dsolve

differential equationsode

Not able to get any result out of this code. May anyone help, thanks
syms y(t)
ode = diff(y,t) == -0.127.*(-3.*(log(7e-10.*exp(0.405.*y))).*(y - 0.01));
cond = y(0) == 0.01;
ySol(t) = dsolve(ode,cond);

Best Answer

  • Consider:
    syms y(t)
    ode = diff(y,t) == -0.127.*(-3.*(log(7e-10.*exp(0.405.*y))).*(y - 0.01));
    cond1 = y(0) == 0.01;
    cond2 = y(0) == 1;
    ySol = dsolve(ode)
    ysol1 = dsolve(ode,cond1)
    ysol2 = dsolve(ode,cond2)