This question was asked in Ex 6.3, 2

Mera MATLAB live class

Lithen Willis's image