This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cluster:96 [2011/02/24 21:05] hmeij |
cluster:96 [2015/03/13 17:52] (current) hmeij [Note] |
||
---|---|---|---|
Line 1: | Line 1: | ||
\\ | \\ | ||
**[[cluster: | **[[cluster: | ||
+ | |||
+ | ==== Note ==== | ||
+ | |||
+ | You can also run matlab jobs via scripts like other software. | ||
+ | |||
+ | Create a file with the matlab commands and then create a shell script to submit the job. | ||
+ | |||
+ | It would look like | ||
+ | |||
+ | < | ||
+ | |||
+ | #!/bin/bash | ||
+ | # submit via 'bsub < run.serial' | ||
+ | |||
+ | #BSUB -q matlab | ||
+ | |||
+ | #BSUB -J test | ||
+ | #BSUB -o test.stdout | ||
+ | #BSUB -e test.stderr | ||
+ | |||
+ | |||
+ | |||
+ | matlab -no display < my_code.m > /dev/null | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Matlab 2013a ==== | ||
+ | |||
+ | Is now the default matlab version, just change the paths in scripts below | ||
+ | --- // | ||
==== Matlab 2010b ==== | ==== Matlab 2010b ==== | ||
Line 11: | Line 41: | ||
* [[http:// | * [[http:// | ||
- | ===== Serial 1 ===== | + | === Serial 1 === |
In the example below, the code waits for the results. | In the example below, the code waits for the results. | ||
Line 47: | Line 77: | ||
</ | </ | ||
- | ===== Serial 2 ===== | + | === Serial 2 === |
After you submit the job, you can exit matlab. | After you submit the job, you can exit matlab. | ||
Line 75: | Line 105: | ||
</ | </ | ||
- | ===== Parallel | + | === Parallel === |
Slightly different syntax. | Slightly different syntax. |