Step function matlab code. To solve … Description.