MATBATCH
From Waisman Brain Imaging Wiki
'matbatch' is a script that can be used under UNIX at Brogden (LAN104, LAN106 - LAN109) to run MATLAB jobs unsupervised in "batch" mode. It does not work under Windows. (It probably works under OS X, but we've never tested it.) It is useful for running long MATLAB jobs that don't need supervision or interaction; for example, scripts for processing large directories of EEG data.)
Usage:
cd /exp/mystudy/mydata matbatch my_matlab_script.m more MATBATCH.LOG
The MATLAB programs (".m" files) that 'matbatch' supports must be MATLAB scripts (not MATLAB functions). They can't require any prompting or other form of interaction with the user. They can't display any graphs. They must just run, and can print out only text (which is captured in a file called "MATBATCH.LOG").
At the end of the 'matbatch' run, e-mail is sent to the user's lab account, informing them of the completion (or failure) of the job.
There is also 'sasbatch', which runs SAS jobs in "batch" mode. The functionality, requirements, and limitations are similar.
Back to MATLAB

