将自己编写的GUI文件转化为exe文件的方式有很多种,具体谈一下利用deploytool进行转化的方法。
首先在命令窗口利用mbuild -setup配置Matlab的一个编译器什么的,按照提示,选择y,然后会让你选择编译器:lcc还是Visual C++,自己选择相应的,具体如下所示:
mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2008a\sys\lcc
[2] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None
Compiler: 2
Please verify your choices:
Compiler: Microsoft Visual C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio
Are these correct [y]/n