User:Jgt/sandbox matlab: Difference between revisions
From HPC Wiki
< User:Jgt
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
=Preliminaries= | =Preliminaries= | ||
{{Cmd|module keyword matlab|output=<pre> | {{Cmd | ||
|module keyword matlab | |||
|output= | |||
<pre> | |||
matlab/r2018a : plot math graphics matlab | matlab/r2018a : plot math graphics matlab | ||
octave/4.2.1 : plot matlab octave | octave/4.2.1 : plot matlab octave | ||
</pre>}} | </pre> | ||
}} | |||
{{Cmd|module load matlab}} | {{Cmd|module load matlab}} | ||
{{Cmd|module load matlab/r2018a}} | {{Cmd|module load matlab/r2018a}} | ||
{{Cmd|module list|output=<pre> | {{Cmd | ||
|module list | |||
|output= | |||
<pre> | |||
Currently Loaded Modulefiles: | Currently Loaded Modulefiles: | ||
1) matlab/r2018a | 1) matlab/r2018a | ||
</pre>}} | </pre> | ||
}} | |||
=Interactive Session - No GUI= | =Interactive Session - No GUI= | ||
{{Cmd|module load matlab|matlab -nodesktop -nodisplay -nosplash|output=<pre> | |||
{{Cmd | |||
|module load matlab | |||
|matlab -nodesktop -nodisplay -nosplash | |||
|output= | |||
<pre> | |||
< M A T L A B (R) > | < M A T L A B (R) > | ||
Line 31: | Line 44: | ||
>> helloWorld | >> helloWorld | ||
Hello, World! | Hello, World! | ||
</pre>}} | </pre> | ||
}} | |||
=Interactive Session - GUI= | =Interactive Session - GUI= | ||
{{Cmd|module load matlab|srun -p float -n 2 --pty --x11 -t 03:00:00 bash | {{Cmd | ||
|module load matlab | |||
|srun -p float -n 2 --pty --x11 -t 03:00:00 bash | |||
|test | |||
}} | |||
=Non-Interactive Batch Job= | =Non-Interactive Batch Job= |
Revision as of 13:13, 31 August 2018
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 $
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 $
module load matlab
user $
srun -p float -n 2 --pty --x11 -t 03:00:00 bash
user $
test