Setting up your .cshrc file for Matlab
If you want to be able to switch back and forth between using the Linux
boxes and the SGI's, and still be able to run Matlab, it helps to have the
following lines in your .cshrc file:
setenv MATLAB /usr/local/matlab.5.3
if ($HOST == 'sapphire') setenv MATLAB /usr/local/matlab
set path = (${MATLAB}/bin $path )
setenv LD_LIBRARY_PATH /usr/local/matlab/extern/lib/lnx86
if ($HOSTTYPE == 'iris4d') setenv LD_LIBRARY_PATH ${MATLAB}/extern/lib/sgi
If you already have your LD_LIBRARY_PATH variable set, you should
change the last two lines to:
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/matlab/extern/lib/lnx86
if ($HOSTTYPE == 'iris4d') setenv LD_LIBRARY_PATH \
${LD_LIBRARY_PATH}:${MATLAB}/extern/lib/sgi