Solving Difference Equations With Initial Conditions In Matlab, More importantly, you need to spend some time learning MATLAB.