Monday, April 20, 2015

Shell Script for running Matlab

This script can be used to run multiple instances of Matlab on OS X.

In /usr/local/bin/matlab,
for i in $*;
do
    params=" $params $d$i"
done

sudo /Applications/MATLAB_R20XXx_Student.app/bin/matlab $params

where /Applications/MATLAB_R20XXx_Student.app/bin/matlab should be your Matlab executable.