matlab引擎“无法启动MATLAB引擎”

11 views (last 30 days)
yang
yang on 17 Feb 2025
Answered: jung on 17 Feb 2025
以下代码:
代码语言:javascript
复制
if (!(ep = engOpen("\0"))) {
fprintf(stderr, "\nCan't start MATLAB engine\n");
return EXIT_FAILURE;
}
提供:
代码语言:javascript
复制
Can't start MATLAB engine
我不知道是什么原因...我有两个版本的Matlab64位R2011a和32位R2010b。我使用的是matlab第二版的引擎库。操作系统windows 7 x64。根据一些主题,这个问题可能是由多个matlab版本MATLAB Engine Windows 7 problem引起的,但我已经从PATH环境变量中删除了x64 Matlab ...

Accepted Answer

jung
jung on 17 Feb 2025
下面是一些可以尝试的东西:
  • 确保您的路径设置为具有Matlab二进制目录的完整路径。例如,64位matlab为C:\Program Files\MATLAB\R2011a\bin\win64。我不知道为什么你有两个2011a的副本,但我可以确认在当前路径上只有一个matlab安装。
  • 确保你使用32位matlab时使用32位编译器,使用64位matlab时使用64位编译器。这是非常important.
  • Confirm你正在使用的编译器,is supported
  • Try re-registering the Matlab COM.在2010/2011的安装中,我不得不这样做。在linux上运行
  • ,确保csh为installed.

More Answers (0)

Categories

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

Tags

Community Treasure Hunt

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

Start Hunting!