23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

errordlg<br />

2errordlg<br />

Purpose Create and display an error dialog box<br />

Syntax errordlg<br />

errordlg('errorstring')<br />

errordlg('errorstring','dlgname')<br />

errordlg('errorstring','dlgname','on')<br />

h = errordlg(...)<br />

Description errordlg creates an error dialog box, or if the named dialog exists, errordlg<br />

pops the named dialog in front of other windows.<br />

2-498<br />

errordlg displays a dialog box named 'Error Dialog' that contains the string<br />

'This is the default error string.'<br />

errordlg('errorstring') displays a dialog box named 'Error Dialog' that<br />

contains the string 'errorstring'.<br />

errordlg('errorstring','dlgname') displays a dialog box named 'dlgname'<br />

that contains the string 'errorstring'.<br />

errordlg('errorstring','dlgname','on') specifies whether to replace an<br />

existing dialog box having the same name. 'on' brings an existing error dialog<br />

having the same name to the foreground. In this case, errordlg does not create<br />

a new dialog.<br />

h = errordlg(...) returns the handle of the dialog box.<br />

Remarks <strong>MATLAB</strong> sizes the dialog box to fit the string 'errorstring'. The error dialog<br />

box has an OK pushbutton and remains on the screen until you press the OK<br />

button or the Return key. After pressing the button, the error dialog box<br />

disappears.<br />

Examples The function<br />

The appearance of the dialog box depends on the windowing system you use.<br />

errordlg('File not found','File Error');

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!