Hi Adil,
Please include some information on what you have tried as of now and what portions do you specifically need MATLAB related help in. Refer to the following post on how to seek help on homework questions: https://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers
