1. Install Matlab Runtime Installer Hold Control + Click on Matlab Application icon. Select “Show Package Contents”. Navigate to toolbox/compiler/deploy/maci64/ Double click MCRInstaller.zip Go to Downloads/MCRInstaller, click InstallForMacOSX login: labadmin password: [Remember from yesterday?] Follow instructions, install to default /Applications/MATLAB/MATLAB_Runtime 2. Execute run_rcorr.app Use rcorr.sh (shell script for temporarily setting environment variables and executing the application) ./rcorr.sh at Linux or Mac command prompt. is the directory where version 8.5 of the MATLAB runtime is installed or the directory where MATLAB is installed on the machine. is all the arguments you want to pass to your application. In this case, we have version 8.5 of the MATLAB runtime installed in /Applications/MATLAB/MATLAB_Runtime/v85, so to run the shell script type: ./rcorr.sh /Applications/MATLAB/MATLAB_Runtime/v85