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