MATLAB code sync