In order to run a matlab job on the RCE Batch Cluster, you must set a number of environment variables and run matlab in a command line mode. HMDC has developed a simple program to automate this process called submitMatlabBatch.sh.
To run your Matlab code as a batch job, open a terminal window in the RCE and type:
Simply supply the name of your matlab code file in place of
myfile.m, and your code will run one iteration as a batch job.
Standard output from your job will be captured in the file
Standard error messages will be captured in the file
If you want to run more than one iteration of your job, run
submitMatlabBatch.sh in interactive mode and you will be prompted for the number of iterations:
submitMatlabBatch.sh -I myfile.m