Difference between revisions of "MATLAB"

From NEClusterWiki
Jump to navigation Jump to search
(new matlab modules)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[http://www.mathworks.com/products/matlab/ MATLAB] is installed in <code>/opt/MATLAB</code>. Binaries are in <code>/opt/MATLAB/<version>/bin/</code>
+
==Matlab==
  
The license is active on all regular computing nodes.
+
[http://www.mathworks.com/products/matlab/ MATLAB/Simulink] is installed in <code>/opt/MATLAB</code>. The license is active on all computing nodes.
  
To start MATLAB, type <code>module load matlab/R2012a</code> or <code>module load matlab/R2011b</code> depending on which version you want to run, followed by <code>matlab</code>
+
To start MATLAB, type <code>module load matlab/R2019a</code> or <code>module load matlab/R2018a</code> depending on which version you want to run; just <code>module load matlab</code> will provide the latest version available on the cluster. Then type <code>matlab</code> command to start the Matlab environment.
 +
 
 +
Run in textmode using: <code>matlab -nodisplay -nodesktop -nojvm -nosplash</code>
 +
 
 +
Example script:
 +
<source lang="bash">#!/bin/bash
 +
#PBS -V
 +
#PBS -q fill
 +
#PBS -l nodes=1:ppn=1
 +
#PBS -l pmem=3500mb
 +
 
 +
#### cd working directory (where you submitted your job)
 +
cd ${PBS_O_WORKDIR}
 +
 
 +
#### load module
 +
module load matlab
 +
 
 +
#### Executable Line
 +
matlab -nodisplay -nodesktop -nojvm -nosplash -r 'run MYINPUTFILE.INP; exit'</source>
 +
 
 +
 
 +
==Simulink==
 +
 
 +
To run Simulink non-interactively ...

Latest revision as of 18:39, 8 July 2019

Matlab

MATLAB/Simulink is installed in /opt/MATLAB. The license is active on all computing nodes.

To start MATLAB, type module load matlab/R2019a or module load matlab/R2018a depending on which version you want to run; just module load matlab will provide the latest version available on the cluster. Then type matlab command to start the Matlab environment.

Run in textmode using: matlab -nodisplay -nodesktop -nojvm -nosplash

Example script:

#!/bin/bash
#PBS -V
#PBS -q fill
#PBS -l nodes=1:ppn=1
#PBS -l pmem=3500mb

#### cd working directory (where you submitted your job)
cd ${PBS_O_WORKDIR}

#### load module
module load matlab

#### Executable Line
matlab -nodisplay -nodesktop -nojvm -nosplash -r 'run MYINPUTFILE.INP; exit'


Simulink

To run Simulink non-interactively ...