MATLAB file for the first homework assignment