matlab R2013a中将GUI编译成exe

网上找了很多关于将GUI编译成exe的文章,但总是碰到很多问题,经过反复摸索终于搞定在R2013a版本下的编译方法了!先将工作目录切换到fig和m文件所在位置,在命令行中执行相应的命令,具体过程记录如下:

>> mbuild -setup
 
Welcome to mbuild -setup.  This utility will help you set up  
a default compiler.  For a list of supported compilers, see  
http://www.mathworks.com/support/compilers/R2013a/win32.html 
 
Please choose your compiler for building shared libraries or COM components: 
 
Would you like mbuild to locate installed compilers [y]/n? y
 
Select a compiler: 
[1] Microsoft Visual C++ 2010 in F:\Program Files\Microsoft Visual Studio 10.0 
[2] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio 
 
[0] None 
 
Compiler: 1
 
Please verify your choices: 
 
Compiler: Microsoft Visual C++ 2010  
Location: F:\Program Files\Microsoft Visual Studio 10.0 
 
Are these correct [y]/n? y
 
**************************************************************************** 
  Warning: Applications/components generated using Microsoft V

你可能感兴趣的:(matlab,MATLAB,GUI,编译,exe)