Problem with Code for my coursera course

Ce sujet a été définitivement fermé et transféré vers MATLAB Answers


This is the question I am trying to solve and I also uploading the code i have written and error I am getting, Please help me the error please.