MATLAB compilation issue