Matlab HW help

Hi I need help in my CS 122 ( matlab)

 

I attach my homework file named ” CS lab HW “

 

and the other files I attached them to help you do the homework