Scientific Computing & Visualization
Help Contact
About Accounts Computation Visualization Documentation Services

Introduction to MATLAB

How to Run MATLAB Via Batch on SCV Linux Cluster

Create a script, say, "mbatch", with the following line:

matlab -nodisplay -nosplash < $1 >! $2  

Notes:

  • Without the "!", output will not be permitted if the output file already exists.
  • cootie% chmod +x mbatch
  • Insert "exit" at the end of your m-file.
  • To run mbatch, issue the following command at the system prompt:
    cootie% mbatch infile outfile
    The above runs the job in the background. "infile" is your m-file (be sure to include the suffix .m). "outfile" is the name of the output file.
  • To run batch:
    cootie% bsub -q queue-name "mbatch infile outfile"  
In the above, queue-name is the queue name. You can find out about queue-name by typing, at prompt:
% bqueues -l  

To find out the status of your jobs:

% bjobs  

If you have access to SCV's computer systems, please note that the Linux Cluster is the recommended system for MATLAB applications. It currently runs MATLAB 7.4 (2007a). The IBM pSeries (for which twister is the login node) runs the outdated MATLAB 5.3 since newer MATLAB no longer runs on the AIX operating system. Also, MATLAB is not available on the IBM Bluegene as it is dedicated to parallel processing only.

For more details on the Linux Cluster's batch scheduler, please see this.

left

line right up

Documentation
Boston University
Boston University
 
OIT | CCS | July 7, 2009  
Scientific Computing & Visualization Boston University home page Boston University home page