FUNCTION REFERENCE
uialert
Display an alert dialog box in a UI figure.
Display an alert dialog box in a UI figure.
Syntax
uialert(fig, message, title)Syntax
uialert(fig, message, title, Name, Value)Displays a message sheet over fig with optional Icon ('error', 'warning', 'info', 'success', 'question', 'none'), CloseFcn, Interpreter, and Modal. Non-blocking in the desktop app (CloseFcn runs when dismissed); in -batch mode returns immediately without blocking and runs CloseFcn if given.
Example
fig = uifigure; uialert(fig, 'Done.', 'Status', 'Icon', 'info'); delete(fig)Differences from MATLAB: Custom image icon arrays and HTML interpreter are not supported; Interpreter is accepted but text renders as plain text.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.