Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These two scripts are examples of how to run Matlab on the DSMLP / Research Cluster.  Do not run Matlab on the login node.  Only run it from within a jobUse a text editor, such as nano, to create the script files. 

Make the scripts executable using the chmod command:

chmod a+x file

Only run Matlab from with a job rather than on the login node.


Run Matlab in interactive mode using the following script.

Code Block
languagebash
titleMatlab Interactive
#!/bin/bash
export MLM_LICENSE_FILE=/datasets/software/R2020b/licenses/network.lic
/datasets/software/R2020b/bin/matlab -nojvm -nodisplay -nosplash

...

Rub Matlab in Batch mode where the argument to the script is the name of your Matlab batch file.

Code Block
languagebash
titleMatlab Batch mode
#!/bin/bash
export MLM_LICENSE_FILE=/datasets/software/R2020b/licenses/network.lic
/datasets/software/R2020b/bin/matlab -nodisplay -nosplash -batch "run('$1');"

...