I need help writing a Matlab program for Euler's Method?

I have the differential equation dx/dt = t + 0.2x with initial condition x(0) = -3, t = 5 and step size h = 1. I'm supposed to write a program to verify my handwritten Euler's Method solution and I'm trying to figure out how to write a code for Euler's Method but I have no experience in Matlab... show more I have the differential equation dx/dt = t + 0.2x with initial condition x(0) = -3, t = 5 and step size h = 1.

I'm supposed to write a program to verify my handwritten Euler's Method solution and I'm trying to figure out how to write a code for Euler's Method but I have no experience in Matlab and no clue :-(

Thanks in advance :-)
2 answers 2