This is an old revision of the document!
in MATLAB
» mcc -m myfunction.m
create a script:
#!/bin/sh
module load matlab
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/pkg/matlab/7.14_r2012a/runtime/glnxa64:/pkg/matlab/7.14_r2012a/sys/java/jre/glnxa64/jre/lib/amd64/server/
export XAPPLRESDIR=/pkg/matlab/7.14_r2012a/X11/app-defaults/
./myfunction $1 $2
qsub -q ttn.q myfunction hello world