FUNCTION REFERENCE
msgbox
Show a message in a window and continue.
Show a message in a window and continue.
Syntax
h = msgbox(message)Syntax
h = msgbox(message, title, icon)message is text, a cell array of lines or a string array. icon is 'none', 'error', 'help', 'warn' or 'custom'. The script continues at once; use uiwait(msgbox(...)) to wait until the user clicks OK. h is a handle that close(h), delete(h) and uiwait(h) accept. Without a dialog host, h is a hidden figure handle and uiwait(h) returns immediately.
Example
uiwait(msgbox('All files were converted.', 'Done'));Differences from MATLAB: Custom icon data and the createmode argument are ignored; desktop dialog handles are numbers.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.