To get rid of the DOS window, use mcc -e instead of mcc -m . See "MATLAB Compiler> Function Reference" in the online documentation provided by doc() . You may not want to do this: the DOS window is the result of the last resort; where there are unhandled exceptions, core dumps, and other diagnostic output. At least make it possible so that you can create a debug build with a DOS window.
In my experience, the startup overhead for a compiled stand-alone Matlab program occurs before control passes to the user M code, so the splash screen must be executed in an external program or connected to the C wrapper that mcc generates. You could use the suggestion of Michael J. Write a launcher. However, you are not looking for matlab.exe or the Matlab desktop window, as it is a standalone application. To determine when the Matlab program started, ask the M-code to write a small temp file as the first thing the program executes, and try starting your startup program.
source share