Install add-ons through commandline/headless?
51 ビュー (過去 30 日間)
古いコメントを表示
I'd like to install add-ons using the command line to automate this step in our Matlab Docker image (where no GUI is available). Is there anyway to achieve this?
0 件のコメント
回答 (1 件)
Walter Roberson
2021 年 7 月 30 日
It is possible, using matlab.addons.install()
However, this requires having the mltbx file. If you do not already have the correct file on hand, you will have to download it from Mathworks.
... Which can be a bit of a challenge, as the MATLAB version of the file names do not have much relationships to the readable name of the add-ons. You can use File Exchange to locate a contribution and get read the file name out of the download link.
2 件のコメント
Walter Roberson
2021 年 7 月 31 日
MATLAB products use a different installation procedure that requires shutting down MATLAB and invoking the installer. That being the case, you are probably just as well off using the "silent install"; https://www.mathworks.com/help/install/ug/install-noninteractively-silent-installation.html
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!