Not able to use add ons which require Simulink Installed

2 次查看(过去 30 天)
I am browsing the add on store but am not able to add any add on which require simulink. I had installed Simulink seperately after installing matlab and have my academic liscence for both. Also Simulink is working fine in my pc and opens up when i write simulink in the command window. I am using Matlab 2020 in my windows 10 pc. But still while installing any add on it shows simulink not installed.

回答(1 个)

Ankriti Sachan
Ankriti Sachan 2020-5-13
This error might be happening due to some path resolution failure or due to cache. You can try this to resolve the issue:
  1. Take a backup of your ‘pathdef.m’ file, which can be located by using the command
>> which -all pathdef
Before proceeding, ensure that you make a safe copy of the file by copying it to a folder outside of your MATLAB path.
2. After taking backup, execute following commands in the MATLAB Command Window to restore the default MATLAB search path and rehash the toolbox cache:
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
After this step, please use MATLAB/ Simulink to see if the issue occurs again. If the issue is resolved, then you may want to save the new MATLAB search path by executing the following command:
>> savepath
NOTE: This will remove any custom paths you may have created. The following MATLAB Answers post is an additional resource on how to back them up:

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by