MATLAB: How to compile a standalone MATLAB application with startup options (e.g. nojvm)

applicationcompilerflagsMATLABopenglsoftwarestandalonestartup

I would like a standalone application I am compiling to startup with software OpenGL. How can I accomplish this?

Best Answer

The startup options for a compiled application can be specified in the 'Settings' menu:
  1. Open the MATLAB Compiler window.
  2. Click the 'Settings' button in the toolstrip.
  3. Type '-R -softwareopengl' (without the single-quotes) in the text box towards the top.
More information about the MATLAB compiler can be found here: