Go to a bash shell and set the shell variables MATLAB,
DVLD_LIBRARY_PATH, and PATH, then start Max from this terminal.

You should be able to cut and paste this text into a Terminal window:

bash
# Note this kludge to get /Applications/MATLAB701, /Applications/MATLAB704, etc:
MATLAB=`echo /Applications/MATLAB*`
export MATLAB
DYLD_LIBRARY_PATH=$MATLAB/bin/mac:$MATLAB/sys/os/mac:$DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH
PATH=$MATLAB/bin:$PATH
export PATH
open /Applications/MaxMSP\ 4.5/MaxMSP\ 4.5




For Remote:

Start the X server on your machine
xhost +[ip_address_of_matlab_server]
Make sure your path on the matlab server includes the Matlab directory


Type this in a terminal on my laptop to run Matlab on the G5:
ssh 128.32.122.217 ls
ssh 128.32.122.217 "/bin/csh -c 'setenv DISPLAY 128.32.122.70:0; printenv'"
ssh 128.32.122.217 "/bin/csh -c 'setenv DISPLAY 128.32.122.70:0; /usr/X11R6/bin/xclock'"
ssh 128.32.122.217 "/bin/csh -c 'matlab -nojvm'"
ssh 128.32.122.217 "/bin/csh -c 'setenv DISPLAY 128.32.122.70:0; matlab'"