Translate to matlab

Translation of the Python lessons to Matlab.