Extra window problem when generating .exe file with MATLAB

China☆狼群 提交于 2020-01-15 03:50:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!