Question : How to write matlab code to solve y’ = −4y + 2, y(0) = 5 Solution : %matlab code to solve y’ = −4y + 2, y(0) = 5 syms y(x)ODE=diff(y)==-4*y+2;conditon = y(0) == 5;Solution = dsolve(ODE,conditon) output…
Posted inMathematical Physics
Question : How to write matlab code to solve y’ = −4y + 2, y(0) = 5 Solution : %matlab code to solve y’ = −4y + 2, y(0) = 5 syms y(x)ODE=diff(y)==-4*y+2;conditon = y(0) == 5;Solution = dsolve(ODE,conditon) output…