12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

errordlgPurpose2errordlgCreate and display an error dialog boxSyntaxDescriptionerrordlgerrordlg('errorstring')errordlg('errorstring','dlgname')errordlg('errorstring','dlgname','on')h = errordlg(...)errordlg creates an error dialog box, or if the named dialog exists, errordlgpops the named dialog in front of other windows.errordlg displays a dialog box named 'Error Dialog' that contains the string'This is the default error string.'errordlg('errorstring') displays a dialog box named 'Error Dialog' thatcontains the string 'errorstring'.errordlg('errorstring','dlgname') displays a dialog box named 'dlgname'that contains the string 'errorstring'.errordlg('errorstring','dlgname','on') specifies whether to replace anexisting dialog box having the same name. 'on' brings an existing error dialoghaving the same name to the foreground. In this case, errordlg does not createa new dialog.h = errordlg(...) returns the handle of the dialog box.RemarksExamples<strong>MATLAB</strong> sizes the dialog box to fit the string 'errorstring'. The error dialogbox has an OK pushbutton and remains on the screen until you press the OKbutton or the Return key. After pressing the button, the error dialog boxdisappears.The appearance of the dialog box depends on the windowing system you use.The functionerrordlg('File not found','File Error');2-131

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

Saved successfully!

Ooh no, something went wrong!