To link with MATLAB