MATLAB Runtime Server | ![]() ![]() |
Preventing Command Window Input/Output
The MATLAB Runtime Server does not provide a command-line interface to the end user, so your application should not depend on the command window. To eliminate dependence on the command window, you should:
input
function to acquire command-line input from the user, replace it with the inputdlg
function, which uses a dialog box instead.
;
) operator at the end of statements to suppress the display of results to the command window. Use the GUI window, or additional figure windows and dialog boxes, to display results, error messages, help text, etc. See Trapping Errors for more information about handling errors. Also, see Setting the Global Warning Behavior on UNIX for information about UNIX warnings.
If you need to use an evaluation function, then use evalc
instead of eval
, thus capturing output text. However, be aware that evaluation functions can make it more difficult to determine which files the application depends on. See Analyzing Functions Called by eval for information.
Menubar
property to 'none'
. You can still add your own menus.
![]() | Design Issues for a Runtime Application | Disabling Default Menu Options Selectively | ![]() |