Matlab

Solve following problem using Matlab. Questions 1 and 3 only are needed.