matlab启动会报​错:无法与所需的Ma​thWorks服务通​信

268 views (last 30 days)
书磊
书磊 on 8 Jul 2023
Commented: xinkai on 1 Oct 2025 at 17:48
matlab启动会报错:无法与所需的MathWorks服务通信

Answers (3)

杨博元 杨
杨博元 杨 on 22 May 2024
如果安装了360安全卫士,尝试以下步骤:
(1)打开360安全卫士,选择“木马查杀”选项
(2)点击右下角“恢复区”,在跳出的“安全操作中心”对话框中查看“可恢复区”是否有“C:\Users\Administrator\AppData\Local\MathWorks\ServiceHost”路径下的文件,如有,全部选中,点击下方“恢复所选”按钮
(3)在跳出的“360恢复区”弹框上勾选“恢复后信任此文件,不再查杀”,点击“恢复”按钮
(4)点击“安全操作中心”对话框左侧的“已信任区”,点击“添加目录”按钮,在跳出的“浏览文件夹”对话框中选择“C:\Users\Administrator\AppData\Local\MathWorks”路径和MATLAB的安装路径例如“D:\IDE-Matlab\R2023b”
备注,如果向“已信任区”添加目录时找不到AppData\Local\MathWorks文件夹,可尝试:
(1)按Win+R,输入control folders
(2)在跳出的“文件资源管理器选项”对话框,点击“查看”选项,找到“隐藏文件和文件夹”,选中“显示隐藏的文件、文件夹和驱动器”
总结,如果MATLAB原先可以用,突然出问题了,就要检查是不是安全软件或杀毒软件的问题。
————————————————
原文链接:https://blog.csdn.net/weixin_62405811/article/details/138602193
  2 Comments
Zhubao
Zhubao on 17 Oct 2024
感谢您的解答,这个方法十分有用
媛
on 12 Nov 2024
有用!恢复完立马就好了

Sign in to comment.


Keshav
Keshav on 1 Aug 2023
Generally this error appear because of licensing issue. You can try out the following steps to resolve above error.
(i) Restart MATLAB
(ii) Restart your computer or end the MathWorks Service Host process.
(iii) Uninstall and reinstall the MathWorks Service Host.
For detailed instructions on how to perform these steps, you can refer to the Matlab Answer link provided below:

xinkai
xinkai on 1 Oct 2025 at 17:47
方法一
  1. 打开任务管理器;
  2. 找到MathWorksServiceHost,结束任务;
  3. 重启matlab。
方法二
首先需要确保可以在文件资源管理器中查看隐藏的文件夹。
  1. 同时按住键盘上的 Windows+R 打开“运行,输入“C:\Users\%username%(你的用户名)\AppData\Local\MathWorks\ServiceHost\”并回车;
  2. 进入已安装的任何版本命名的文件夹(例如:v2023.9.0.2);
  3. 进入 “mci” -->“bin”-->“win64" 文件夹;
  4. 双击运行“UninstallMathWorksServiceHost”卸载程序,卸载程序将不会有任何弹窗,一会儿就会完成。如果安装了多个版本,就重复上述操作。
  5. 返回“ServiceHost”文件夹,删除刚刚卸载的所有带有版本名称的文件夹(例如:v2023.9.0.2);
  6. 删除 LastInstall.info 文件;
  7. 进入上一级 MathWorks 文件夹,删除 MATLABConnector 文件夹;
  8. 重启matlab。
内容来源:https://blog.csdn.net/weixin_49206493/article/details/133961755
觉得有用的可以给原创博主点点赞和关注💗
  1 Comment
xinkai
xinkai on 1 Oct 2025 at 17:48
方法二亲测有用!

Sign in to comment.

Categories

Find more on 启动和关闭 in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!