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

7 ビュー (過去 30 日間)
VIKAS SHRISHAIL
VIKAS SHRISHAIL 2024 年 7 月 22 日
編集済み: VIKAS SHRISHAIL 2024 年 7 月 23 日
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 Center および File ExchangeIntroduction 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