这是电脑没有安装matlab运行库导致的。可下载MCR(Matlab Compile Runtime)安装,注意对应版本以及win32和win64。安装完后在\runtime\win32(win64)路径下找到mclmcrrt8_2.dll拷贝到运行程序目录下即可。
举例:提示缺少mclmcrrt8_2.dll则下载R2013b对应的MCR.
https://ww2.mathworks.cn/products/compiler/matlab-runtime.html
下面是一些版本的 MATLAB Compiler 的 MCR 版本:
----------------------------------------------------------
MATLAB | MATLAB | MATLAB |
Release | Component | Compiler |
| Runtime (MCR) | Version |
-----------------------------------------------------------
R14 (7.0) | 7.0 | 4.0 |
R14SP1 (7.0.1) | 7.1 | 4.1 |
R14SP2 (7.0.4) | 7.2 | 4.2 |
R14SP3 (7.1) | 7.3 | 4.3 |
R2006a (7.2) | 7.4 | 4.4 |
R2006b (7.3) | 7.5 | 4.5 |
R2007a (7.4) | 7.6 | 4.6 |
R2007b (7.5) | 7.7 | 4.7 |
R2008a (7.6) | 7.8 | 4.8 |
R2008b (7.7) | 7.9 | 4.9 |
R2009a (7.8) | 7.10 | 4.10 |
R2009b (7.9) | 7.11 | 4.11 |
R2009bSP1 (7.9.1) | 7.12 | 4.12 |
R2010a (7.10) | 7.13 | 4.13 |
R2010b(7.11) | 7.14 | 4.14 |
R2010bSP1 (7.11.1)| 7.14.1 | 4.14.1 |
R2010bSP2 (7.11.2)| 7.14.2 | 4.14.1 |
R2011a (7.12) | 7.15 | 4.15 |
R2011b (7.13) | 7.16 | 4.16 |
R2012a (7.14) | 7.17 | 4.17 |
R2012b (8.0) | 8.0 | 4.18 |
R2013a (8.1) | 8.1 | 4.18.1 |
R2013b (8.2) | 8.2 | 5.0 |
-------------------------------------------------------------