Cant open simulink, and the remind info as below

1 次查看(过去 30 天)
STARTUP FILE
Undefined function or variable 'connector.ensureServiceOn'.
Undefined function or variable 'mls.internal.FevalService.init'.
Undefined function or variable 'connector.internal.lifecycle.callConnectorStarted'.
Matlab version: 2018b
  1 个评论
Walter Roberson
Walter Roberson 2020-1-2
https://www.mathworks.com/matlabcentral/answers/409597-after-installation-matlab-2018a-does-not-open-any-files
Possibly restoredefaultpath

请先登录,再进行评论。

回答(1 个)

Jemima Pulipati
Jemima Pulipati 2021-1-12
编辑:Jemima Pulipati 2021-1-12
Hello,
From my understanding, these error statements are likely caused due to path issues when the cache is not up to date.
You may try the following steps to resolve the issue.
Before modifying the search path, it is important to take a backup of your 'pathdef.m' file, which can be located by using the following command. Ensure that the copy is placed in a folder outside of the MATLAB path.
>> which -all pathdef
After taking the backup, please execute the 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 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