Using MATLAB
Members of the University can use MATLAB, see:
However, on Hummel-2 only standalone binaries generated mit the MATLAB compiler can be executed.
Example
On your computer where you have MATLAB installed:
- store a hello-world-program in
hello_world.m
pc$
cat hello_world.m disp('Hello, MATLAB World!');
- compile
hello_world.m
(which will generate an executable calledhello_world
)
pc$
mcc -m hello_world.m
- copy
hello_world
to Hummel-2
On Hummel-2:
- load the
matlab-runtime
Module that matches the MATLAB version installed on your computer
hummel2-front1$
module avail matlab-runtime -------------------------- /sw/TOOL --------------------------- matlab-runtime/2023b-update10 matlab-runtime/2024b-update5 matlab-runtime/2024a-update7hummel2-front1$
module load matlab-runtime/2024b-update5 module: loaded matlab-runtime/2024b-update5
- start
hello_world
with the RRZ wrapper scriptrrz-matlab-runtime
hummel2-front1$
rrz-matlab-runtime ./hello_world Hello, MATLAB World!