R and MATLAB