Index of /examples/matlab/Archive

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] wnbatch 02-Mar-2015 15:12 62 [   ] run_standalone_job 02-Mar-2015 15:12 1.7K [   ] run_matlab_pct_job 02-Mar-2015 15:12 1.0K [   ] runBatchJob.m.old 02-Mar-2015 12:00 3.3K [   ] runBatchJob.m 02-Mar-2015 15:12 1.1K [   ] readme.m 02-Mar-2015 15:12 2.7K [   ] pnbatch 02-Mar-2015 15:12 109 [   ] pbatch_l 02-Mar-2015 15:12 609 [   ] pbatch2 02-Mar-2015 15:12 53 [   ] pbatch 02-Mar-2015 15:12 235 [   ] myWave.m 02-Mar-2015 15:12 128 [   ] mySCR.m 02-Mar-2015 15:12 625 [   ] myInterface.m 02-Mar-2015 15:12 706 [   ] myFCT.m 02-Mar-2015 15:12 728 [   ] myApp.m 02-Mar-2015 15:12 399 [   ] mbatch 02-Mar-2015 15:12 72 [   ] isBatch.m 02-Mar-2015 15:12 140 [   ] getbev.m 02-Mar-2015 15:12 1.7K [   ] epbatch 02-Mar-2015 15:12 82 [TXT] LongForm.html 05-Mar-2015 14:28 1.5K

A Collection of MATLAB Batch Scripts And Utility M-files

  1. README.html -- this file
  2. epbatch ------- Embarrassingly Parallel BATCH
  3. getbev.m ------ m-file to return batch env. vars
  4. isBatch.m ----- whether code is running in batch
  5. mbatch -------- Simple MATLAB batch script
  6. myApp.m ------- Sample Application m-file
  7. myInterface.m - Handles batch env vars and runs myApp
  8. pbatch -------- Parallel BATCH job (PCT)
  9. pbatch2 ------ runs myInterface in batch
  10. pnbatch ------- Partial Node Batch job
  11. run_standalone_job -- Standalone Batch job
  12. wnbatch ------- Whole Node Batch job

Where to Store Them

Copy them to ~/matlab for access from any user folder. This is the folder where startup.m resides.

Types of MATLAB Batch Jobs

  1. Running Serial (single-core) MATLAB Batch Jobs
    scc1$ qsub ./mbatch
  2. Running Parallel (multicore) MATLAB Batch Jobs
    scc1$ qsub -pe omp 4 ./pbatch
  3. Running Pre-compiled MATLAB code (needs no licenses)
    scc1$ qsub ./run_standalone_job
    More details are available in How To Create & Run MATLAB Standalone Executable.

  4. Running Implicitly Parallel (multithreaded) MATLAB Batch Jobs
    scc1$ qsub -pe omp 12 ./wnbatch
    scc1$ qsub -pe omp 7 ./pnbatch
For more details, see: Running MATLAB Batch Jobs on the SCC
Kadin Tseng, Research Computing Services, IS&T, Boston University
Created  : January, 2015
Modified : 
Note: Research Computing Services (RCS) example programs are provided "as is" without any warranty of any kind. The user assumes the entire risk of quality, performance, and repair of any defects. You are encouraged to copy and modify any of the given examples for your own use.