Homework Help

MAT LAB QUESTION

I can not seem to figure out what the answer is. If someone could give me a detailed explanation on doing this in MATLAB