Please add some comments to the matplot part of the code.
Please add some comments to the matplot part of the code.