Matlab Custom Add-On disappearing from Add-On list after restarting the Matlab instant

1 visualización (últimos 30 días)
Hi,
I am working with custom Matlab add-on (simulink toolbox) which I tried installing (with/without admin access), but everytime I close the Matlab and reopen the new instance I lose that add-on from add-on list that also mean I am not able to use those custom toolboxes.
Please note I still see the custom add-on installation present on the disk at following folder.
Users\<user.name>\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\<<CustomToolBox>>
Does anyone know what is the resolution to this?

Respuestas (1)

Vandit
Vandit el 23 de Jul. de 2024
Hello Vikas,
When you install a support package, MATLAB tries to add the necessary directories to your path. However, if your 'pathdef.m'(path definition file) is read-only, it may have failed to save the updated path. This means the path changes are only active until you restart MATLAB.
You should have seen some error or warning text when you installed the support package, indicating that the installer failed to save the updated path. You can save your path to a location by using the "savepath" function with an input argument that specifies the full path. To ensure MATLAB uses this path in future sessions, save the path to 'pathdef.m' in your MATLAB startup folder.
Additionally, please refer to the following MATLAB Answers thread which might resolve your query:
To know more about "savepath" function, please refer to the documentation given below:
Hope this helps.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by