Display msg using an error dialog box.
The message may have multiple lines separated by newline characters ("\n"), or it may be a cellstr array with one element for each line.
The optional input title (character string) can be used to set the
dialog caption. The default title is "Error Dialog"
.
The return value is always 1.
Compatibility Note: The optional argument createmode is accepted for MATLAB compatibility, but is not implemented.
See also: helpdlg, inputdlg, listdlg, msgbox, questdlg, warndlg.
The following code
disp ('- test errordlg with prompt only.'); errordlg ('Oops, an expected error occured');
Produces the following output
- test errordlg with prompt only.
The following code
disp ('- test errordlg with prompt and caption.'); errordlg ('Oops another error','This is a very long and informative caption');
Produces the following output
- test errordlg with prompt and caption.
Package: octave