matlab引擎“无法启动MATLAB引擎” [英] matlab engine "Can't start MATLAB engine"
本文介绍了matlab引擎“无法启动MATLAB引擎”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下代码:
if (!(ep = engOpen("\0"))) {
fprintf(stderr, "\nCan't start MATLAB engine\n");
return EXIT_FAILURE;
}
赠送:
Can't start MATLAB engine
我不知道什么原因...我有两个版本的Matlab R2011a 64位,和R2010b 32位。我使用matlab的第二版本的引擎lib。操作系统windows 7 x64。
根据一些主题,这个问题可能是由多个matlab版本引起的
MATLAB引擎Windows 7问题
但我已从PATH环境变量删除x64 Matlab ...
I don't know what is the reason ... I have two versions of Matlab R2011a 64-bit, and R2010b 32-bit. I use engine lib of second version of matlab. OS windows 7 x64. According to some topics this problem can be caused by multiple matlab versions MATLAB Engine Windows 7 problem but i have deleted x64 Matlab from PATH enviroment variable...
推荐答案
有几件事要试试:
- 确保您的PATH设置为具有Matlab二进制目录的完整路径。例如,64位matlab这是C:\Program Files \MATLAB\R2011a\bin\win64。我不知道为什么你有两个2011a的副本,但我会确认只有一个安装的matlab是在当前路径。
- 确保您使用32位编译器,当使用32位matlab,和64位编译器时使用64位matlab。这是非常重要的。
- 确认您使用的是
- 尝试重新注册Matlab COM 。我不得不这样做2010/2011安装。
- 在linux上,请确保已安装csh。
- Make sure your PATH is set to have the full path of the Matlab binary directory. For example, 64bit matlab this is C:\Program Files\MATLAB\R2011a\bin\win64. I'm not sure why you have two copies of 2011a, but I would confirm that only one install of matlab is on the current path.
- Make sure you are using a 32bit compiler when using 32bit matlab, and 64bit compiler when using 64bit matlab. This is very important.
- Confirm you are using a compiler that is supported
- Try re-registering the Matlab COM. I've had to do this for a 2010/2011 install.
- On linux, make sure csh is installed.
这篇关于matlab引擎“无法启动MATLAB引擎”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文