errordlg
Create error dialog box
Description
Note
uialert is recommended over
errordlg because it provides additional
customization options.
f = errordlg( creates a nonmodal
error dialog box with the specified error message and returns the dialog box
msg)Figure object f. The message text wraps to
fit the dialog box.
Use the errordlg function if you want to show an error dialog
box over multiple app windows, the MATLAB® desktop, or Simulink® and still be able to interact with them before responding to the
dialog box.
f = errordlg creates an error dialog box with a default title
and message as follows.
Default title: Error Dialog
Default message:
This is the default error.
Examples
Input Arguments
More About
Tips
Modal dialog boxes (created using
errordlg,msgbox, orwarndlg) replace any existing dialog boxes created with these functions that also have the same name.MATLAB program execution continues even when a modal Error dialog box is active. To block program execution until the user closes the dialog box, use the
uiwaitfunction.To create a modal alert dialog box for single-window App Designer or
uifigure-based apps, use theuialertfunction instead.
Version History
Introduced before R2006a

