Create matlab code