User:Jgt/sandbox matlab

From HPC Wiki
Revision as of 13:22, 31 August 2018 by Jgt (talk | contribs)
Jump to:navigation Jump to:search


Preliminaries

user $module keyword matlab
matlab/r2018a        : plot math graphics matlab
octave/4.2.1         : plot matlab octave
user $module load matlab
user $module load matlab/r2018a
user $module list
Currently Loaded Modulefiles:
  1) matlab/r2018a

Interactive Session - No GUI

user $srun -p float -n 2 --pty -t 03:00:00 bash
user $module load matlab
user $matlab -nodesktop -nodisplay -nosplash

                                               < M A T L A B (R) >
                                     Copyright 1984-2018 The MathWorks, Inc.
                                     R2018a (9.4.0.813654) 64-bit (glnxa64)
                                                February 23, 2018


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

>> disp('Hello, World!')
Hello, World!
>> helloWorld
Hello, World!

Interactive Session - GUI

user $ssh user@magnolia.usm.edu -X
user $srun -p float -n 2 --pty --x11 -t 03:00:00 bash
user $module load matlab
user $matlab


Non-Interactive Batch Job