|
用matlab生成的可执行文件会启动控制台界面来进行输入输出.可通过如下方法去掉这个dos窗口.(来源于Google讨论组 http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/0527d566c3b72873)
Add following line to your options file before you compile:
LCC:
set LINKFLAGS=%LINKFLAGS% -subsystem windows
Microsoft Visual C/C++:
set LINKFLAGS=%LINKFLAGS% /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
Borland:
set LINKFLAGS=%LINKFLAGS% -aa
If you do not have this line, the system defaults to building a console application.
You may edit your options file by typing the evaluating the following
sequence of MATLAB commands:
cd(prefdir)
edit compopts.bat
The above steps may cause undesirable or application-fatal behavior. if your application generates any output that would otherwise be displayed in the console window.
GMT+8, 2024-12-25 23:07 , Processed in 0.035917 second(s), 16 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.