How can I install the optimization toolbox under Linux.

4 次查看(过去 30 天)
I install matlab in linux docker, but the optimization toolbox haven't been install. How can I install the optimization toolbox under Linux. in docker. Thanks.

回答(1 个)

Kshitij Chhabra
Kshitij Chhabra 2021-12-31
编辑:Kshitij Chhabra 2021-12-31
Hi,
You can install the latest MATLAB updates, additional toolboxes, and add-ons in the official MATLAB Docker container image. Then, you can save the container for later use to avoid having to reinstall your changes.
To do so please follow the below steps:
1) Launch a MATLAB Container in vnc mode so you can access the desktop client.
docker run -it --rm -p 6080:6080 mathworks/matlab -vnc
2) Connect to the session using http://localhost:6080
3) We need to run MATLAB in admin mode in order to modify the installation. To do that we run MATLAB as sudo mode.
sudo matlab
4) Login to your MathWorks Account and select the appropriate license.
5) Once in MATLAB click Add-Ons, search for additional toolboxes/MATLAB update/t add-ons, click its link and then 6) click "Install". This will launch the installer.
7) Once the download and installation complete MATLAB will relaunch. You can type “ver” and verify that additional toolboxes, add-ons have been installed.
8) Close out of MATLAB (not the VNC session) so we can capture this image. It's important to leave the container running at this point. This is due to the "--rm" flag we used when launching the container.
open a new command window and check that the container is running and capture the container ID.
docker ps -a
9) Use docker commit to create a snapshot: docker commit <container ID> mymatlab:additionaltoolboxes
10) We now have our own image that contains both MATLAB and additional toolboxes. Let's launch a new container based on our new image.
docker run -it --rm -p 6080:6080 mymatlab:additionaltoolboxes -vnc
11) Run “ver” again and you'll see that additional toolboxes are already installed in this image.
If you require further assistance or have a request, contact MathWorks Support.
Hope it helps!

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by