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

4 次查看(过去 30 天)
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?

回答(1 个)

Vandit
Vandit 2024-7-23
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.

类别

Help CenterFile 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!

Translated by