MATLAB script integration