Set Add-ons path using commands

12 visualizzazioni (ultimi 30 giorni)
aL
aL il 29 Set 2017
Modificato: James Richard il 20 Mar 2022
Hi,
I'm interested in setting the Add-ons path using commands rather than going through the MATLAB preferences dialog. Is there a way to do this?
Thanks
Alan

Risposte (1)

Henry Giddens
Henry Giddens il 30 Set 2017
  6 Commenti
John Harris
John Harris il 4 Gen 2018
One place the add-ons directory is stored, at least on Windows, is a matlab.settings file in the AppData folder. For example, mine is c:\users\username\AppData\Roaming\MathWorks\MATLAB\R2017b\matlab.settings with a key name of "InstallationFolder".
James Richard
James Richard il 20 Mar 2022
Modificato: James Richard il 20 Mar 2022
So what's the solution to change the add-ons directory directly?
We have this to change the hardware support package directory.
matlabshared.supportpkg.setSupportPackageRoot
But why don't we have something like this?
matlab.internal.setSettingsRoot

Accedi per commentare.

Categorie

Scopri di più su Search Path in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by