HW 6 problems 2 thru 6 matlab .m file