how to write Euler method matlab to solve ode y’+y=e^(-x) ,y(0)=1 and plot exact vs numerical solutions in the interval [0,3] with step-size h =0.1
Introduction : In this question, we will write Euler method matlab to solve ode y'+y=e^(-x) ,y(0)=1 and plot exact vs numerical solutions in the interval [0,3] with step-size h =0.1.…