Create MatLab code