Translate to matlab

Translation of the Python lessons to Matlab. 
Could you add a few spaces to keep the indentation?