MATLAB exe execute is opening a command window
9 次查看(过去 30 天)
显示 更早的评论
I have matlab 2015a - Basic, SDK compiler & compiler.
I work on GUI development using GUIDE
I creat EXEs using batch script.(See below)
Every time I open the EXE that is compiled using teh below batch scrip, a command prompt is open displaying all the log statemnets.
I donot want this command prompt being open.
NOTE: When the same batch file is used for copiling the same code on different machine with MATLAB COMPILER LIC, the command prompt does not open. So thsi si an issue crealy with matlab settings in my machine.
Please help me resolve this issue!!
-----------------------------------------------------------------------------
set cname=dltool_git_dev
rem ctype main or winmain
set ctype=main
set matv=R2015a
set exeto=D:\02_Compiled\%cname%
set mainm=D:\GITDevelopmentBranch\ETL\anwendungen\dltool\myprog.m
set libp= D:GITDevelopmentBranch\ETL\anwendungen\dltool
set matver="C:\MATLAB\%matv%\bin\mcc.bat"
echo compile %cname% ....
if not exist %exeto% mkdir %exeto%
CALL %matver% -o %cname% -W %ctype%:%cname% -T link:exe -d %exeto% -w enable:specified_file_mismatch -w enable:repeated_file -w enable:switch_ignored -w enable:missing_lib_sentinel -w enable:demo_license -v %mainm% -a %libp%
0 个评论
回答(1 个)
Vaishnav Katiyar
2020-10-29
While using MATLAB Application Compiler GUI, in the Additional Runtime Settings pane kindly check the "Do not display the Windows Command Shell (console) for execution". This may not show any Windows Command Shell on your desktop, when you run your standalone application.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!