Finished HW 7 problems 1 thru 5 matlab