Extra window problem when generating .exe file with MATLAB
usually i simply develop executable (.exe) files of my MATLAB codes by using this command:
mcc -m GUI.m
although there's no problem with the .exe creation, unfortunately when i op开发者_开发知识库ened the .exe, there's a black window (like command prompt) that is also opened, so two windows in total... the GUI figure and the prompt. how do i not have this prompt? is there any setting i can include in the mcc command as above?
Thanks.
Use -e
instead of -m
in the mcc command line. This will change how it's compiled (making it a GUI app instead of a console app), and suppress the command window. Requires Visual Studio. See doc mcc
for details.
精彩评论