Matlab Assigment: 2 questions:Need by Fri night

I need to do the Matlab homework attached here.I have also attached the book where we have the first question for the homework