MATLAB: How to set LD_LIBRARY_PATH for local workers

ld_library_pathlinuxParallel Computing Toolbox

I have the Distributed Computing Toolbox which I am using with the builtin 'local' 12 worker profile.
How can I set LD_LIBRARY_PATH for those workers?

Best Answer

I think I found a solution.
I copied .matlab7rc.sh from MATLABROOT to my home directory, and edited to add the directory I need in LD_LIBRARY_PATH to the LDPATH_SUFFIX variable.
The copy in the home dir seems to override the one in MATLABROOT and this seems to effect the workers as well as a normal Matlab session.