i need the matlab code for this question please the...

Question: i need the matlab code for this question please the...

Question details

I need the matlab code for this question please. The second
picture is the order for the steps and hints on how to do it, along
with the answers. Thanks.