...
- New versions (versions later than 2012a) of MATLAB should be installed in the 3rd-party software package area under the matlab folder:
- Development: /afs/slac/g/lcls/package/matlab
- Production: /usr/local/lcls/package/matlab - Inside the matlab directory, versions should be installed in folders that correspond to their MATLAB version, e.g. 2012a, 2019a, 2020a, 2022b, 2023a, etc.
At the time of this writing, the latest version of MATLAB deployed for LCLS Development and Production is 2022b2023a.
Individual AFS user accounts in the LCLS Development environment default to set up and use MATLAB 2020a unless overridden.
...
Account | Default MATLAB version |
---|
physics | 2012a2020a |
softegr | 2019a2020a |
laci | 2012a |
Anchor |
---|
| matlab_2022b_installation |
---|
| matlab_2022b_installation |
---|
|
2022b
This is 64-bit software.
The Java version used by this Matlab is Java 8.
- Development
- /afs/slac/g/lcls/package/matlab/2022b
- Production
- /usr/local/lcls/package/matlab/2022b
- In production, make sure to copy the licenses folder from other MATLAB version:
/usr/local/lcls/package/matlab/2022b/licenses
Anchor |
---|
| running_matlab |
---|
| running_matlab |
---|
|
Running MATLAB
Code Block |
---|
|
# Launch in desktop mode:
$ run_matlab.bash -m 2022b -d
# Launch in terminal mode:
$ run_matlab.bash -m 2022b |
To In order to set up your environment to use one of the supported versions of MATLAB for development and configuration setup purposes, you need to follow one of the appropriate setup procedures below.
Anchor |
---|
| running_matlab_2022b |
---|
| running_matlab_2022b2022b |
---|
|
2022bDevelopment (
Development
Warning |
Do not run MATLAB instances on mcclogin or lcls-prod02. MATLAB should be run on
airdlcls-
b50-srv01 dev3 in DEV. Do not run MATLAB instances on login nodes such as centos7.)
Code Block |
---|
|
$ source /afs/slac/g/lcls/epics/setup/epicsenv-7.0.3.1-1.0.bash
$ source /afs/slac/g/lcls/tools/oracle/oracleSetup-R11.2.0.4.bash
$ export MATLAB_VER=2022b
$ export MLM_LICENSE_FILE="27010@license701,27010@license702,27010@license703"
$ source /afs/slac/g/lcls/tools/matlab/setup/matlabSetup64.bash
# Launch in desktop mode:
$ LD_PRELOAD=${FACILITY_ROOT}/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64/libCom.so matlab &
$ LD_PRELOAD=${FACILITY_ROOT}/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64/libCom.so /afs/slac/g/lcls/package/matlab/2022b/bin/matlab & # If "matlab &" couldn't find the correct location, use the absolute path
$ run_matlab.bash -m 2022b -d
# Launch in terminal mode:
$ run_matlab.bash --matlab=m 2022b |
Production (Run on softegr@lcls-srv04 srv01 or physics@lcls-ssrv01 in PROD. Do not run MATLAB instances on mcclogin.)
Code Block |
---|
|
$ source /usr/local/lcls/epics/epicsenv-7.0.3.1-1.0.bash
$ source /usr/local/lcls/tools/oracle/oracleSetup-R11.2.0.4.bash
$ export MATLAB_VER=2022b
$ source /usr/local/lcls/tools/matlab/setup/matlabSetup64.bash
# Launch in desktop mode:
$ LD_PRELOAD=${FACILITY_ROOT}/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64/libCom.so matlab &
$ LD_PRELOAD=${FACILITY_ROOT}/epics/base/R7.0.3.1-1.0/lib/rhel7-x86_64/libCom.so /usr/local/lcls/package/matlab/2022b/bin/matlab & # If "matlab &" couldn't find the correct location, use the absolute path
$ run_matlab.bash -m 2022b -d
# Launch in terminal mode:
$ run_matlab.bash --matlab=m 2022b |
Anchor |
---|
| configuring_matlab |
---|
| configuring_matlab |
---|
|
Configuring MATLAB
...