errordlg
Creates an error dialog box.
📝Syntax
h = errordlg
h = errordlg(message)
h = errordlg(message, title)
h = errordlg(message, title, mode)
📥Input Arguments
Parameter Description
message Error text. Use a character vector, string, or cell array of character vectors.
📤Output Arguments
Parameter Description
h Graphics figure handle.
📄Description

errordlg creates an error message dialog and returns a graphics figure handle.

💡Examples
Create an error dialog.
h = errordlg('Invalid value.', 'Error', 'non-modal');
Example illustration
Create the default error dialog.
h = errordlg();
close(h)
🔗See Also
msgboxhelpdlgwarndlg
🕔Version History
Version Description
2.0.0 Updated dialog API help.
Edit this page on GitHub