MATLAB on the CLSP grid
Be careful with Matlab, because the latest versions will by default use a large number of threads. To stop this you can write
in your matlab script to make it use only 1 thread. (Or you can specify some larger number, but make sure you submit with the correct -pe smp option).
Matlab fires a display and a JVM everytime you start it. You can create the following alias in your bashrc to launch the most minimal matlab possible.
alias minimal_matlab='matlab -nojvm -nodesktop -nodisplay -nosplash'
Running matlab from a script:
matlab -nodisplay -nosplash <<EOF maxNumCompThreads(1); you_command_123(the_parameters_and_stuff, $variable_from_the_bash_env); EOF