Solved Please Solve Problem 2 in Matlab Code Problem

Solved Please Solve Problem 2 in Matlab Code Problem