问题
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 opened 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.
回答1:
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.
来源:https://stackoverflow.com/questions/6245399/extra-window-problem-when-generating-exe-file-with-matlab