Install parallel computing toolbox in matlab docker
40 ビュー (過去 30 日間)
I am struggling with installing parallel computing toolbox within matlab docker images (latest version).
I have followed instructions here: https://www.mathworks.com/help/matlab/matlab_env/get-add-ons.html and https://hub.docker.com/r/mathworks/matlab .
1. The matlab docker image browser version does not support Add-on Explorer, which means I cannot install the toolbox directly.
2. The docker image suggests using File Exchange to download the toolbox. However, I can not find the parallel computing toolbox in File Exchange.
3. With my education license, the parallel computing toolbox is automatically installed. No .mltbx file is provided, which makes local installation inaccessible inside docker.
On the other hand, the offical matlab docker documentation says add-ons can be installed.
Can anyone offer some help? Thank you very much !!!
Kojiro Saito 2022 年 12 月 5 日
編集済み: Kojiro Saito 2022 年 12 月 6 日
Web browser version does not support Add-On Explorer, so, you need to launch MATLAB with VNC options.
docker run -it --rm -p 5901:5901 -p 6080:6080 --shm-size=512M mathworks/matlab:r2022b -vnc
Then, in your web browser, type "http://localhost:6080/" in address bar.
You can access Linux's desktop environment.
Next, launch "Terminal Emulator", and type
to launch MATLAB with sudo. It's because MATLAB is installed in /opt/matlab/R2022b with root write permissions.
Then, you can launch Add On Explorer and install toolboxes.
Also, there is a command line way instead of Add-On Explorer.
MATLAB Package Manager (MPM) is available from GitHub.
In Terminal Emulator, download MPM with wget and install Parallel Computing Toolbox with MPM.
chmod +x mpm
sudo ./mpm install --release=R2022b --destination=/opt/matlab/R2022b/ --products Parallel_Computing_Toolbox
Hope this work.