MATLAB Compiler
1. Prerequisites for Deployment
. Verify the MATLAB Compiler Runtime (MCR) is installed and ensure you
have installed version 7.17 (R2012a).
. If the MCR is not installed, do following:
(1) enter
>>mcrinstaller
at MATLAB prompt. This MCR Installer command displays the
location of the MCR Installer.
(2) run the MCR Installer.
Or download Windows 64bit version of MCR from the MathWorks website:
http://www.mathworks.com/products/compiler/
For more information about the MCR and the MCR Installer, see
揥orking With the MCR� in the MATLAB Compiler User抯 Guide.
NOTE: You will need administrator rights to run MCRInstaller.
2. Files to Deploy and Package
Files to package for Standalone
================================
-watermark.exe
-MCRInstaller.exe
-include when building component by clicking "Add MCR" link
in deploytool
-This readme file
3. Definitions
For information on deployment terminology, go to
http://www.mathworks.com/help. Select your product and see
the Glossary in the User抯 Guide.
中文:
如果要在没有安装matlab的计算机上执行编译后的程序,
首先,要将路径:安装路径在的MATLAB/toolbox/compiler/deploy/win32路径中的MCRinstaller.exe安装到该计算机上。
其次,要将“MCRinstaller.exe安装目录runtimewin32”这个路径添加到该计算机的环境变量中。
添加的方法是:右击“我的电脑”“属性”“高级”“环境变量”“添加”指定一个变量名,然后将上述路径复制到里面就可以了。
第三步,将编译生成的相相关文件拷贝到同一目录下(当然其他目录亦可)。
第四步,打开MS-dos操作窗口,进入到编译后的*.exe程序所在的目录,执行编译生成的*.exe文件即可。