MATLAB Runtime Server    

Providing a Way to Exit the Application

Since the user cannot access the command window to type the usual MATLAB quit command, you need to provide a mechanism for the user to exit the application (including quitting MATLAB). Two common ways to do this are by setting the GUI's CloseRequestFcn property to quit the application, and by providing buttons and menus on the interface that enable the user to quit the application. Both techniques are described below.


  Disabling Default Menu Options Selectively Using the CloseRequestFcn to Exit the Application