[英]How to solve Invalid MEX file error In Matlab?
Every time I try to define a symbolic variable I get this error message 每次尝试定义符号变量时,都会出现此错误消息
Invalid MEX-file 'C:\\Program Files\\MATLAB\\R2013a\\toolbox\\symbolic\\symbolic\\mupadmex.mexw64': C:\\Program Files\\MATLAB\\R2013a\\toolbox\\symbolic\\symbolic\\mupadmex.mexw64 is not a valid Win32 application.
无效的MEX文件'C:\\ Program Files \\ MATLAB \\ R2013a \\ toolbox \\ symbolic \\ symbolic \\ mupadmex.mexw64':C:\\ Program Files \\ MATLAB \\ R2013a \\ toolbox \\ symbolic \\ symbolic \\ mupadmex.mexw64不是有效的Win32应用。
please help :) 请帮忙 :)
.mexw64
is the file extension for mex files that have been compiled for 64-bit systems. .mexw64
是已为64位系统编译的mex文件的文件扩展名。
If your Windows installation is 32 bit, or even if Windows is 64-bit but the Matlab install is 32-bit (check the task manager to verify the latter) then Matlab will be looking for .mexw32
files, compiled for 32-bit systems, instead. 如果您的Windows安装是32位,或者即使Windows是64位,但Matlab安装是32位(请检查任务管理器以验证后者),则Matlab将寻找为32位系统编译的
.mexw32
文件。 ,而不是。 The message "...is not a valid Win32 application" seems to imply that this is the case. 消息“ ...不是有效的Win32应用程序”似乎暗示情况是这样。 If so, you need to obtain or build a 32-bit version of your mex file.
如果是这样,则需要获取或构建32位版本的mex文件。
This error is caused by missing lib. 此错误是由于缺少lib引起的。 Please install lib based on link as below: http://www.microsoft.com/en-us/download/details.aspx?id=14632 Or http://www.microsoft.com/en-us/download/details.aspx?id=15336
请根据以下链接安装lib: http : //www.microsoft.com/en-us/download/details.aspx?id= 14632或http://www.microsoft.com/en-us/download/details .aspx?id = 15336
this problem seemed independent of 32/64 bit machines or versions of windos to me. 在我看来,这个问题似乎与32/64位机器或windos版本无关。 I could solve it several times by simply installing the 2012 or a higher version of Microsoft Visual C++ Redistributable.
我可以通过简单地安装2012或更高版本的Microsoft Visual C ++ Redistributable来解决几次。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.