When you click the Run button, the following dialog displays.
When you run the UI and assign the output to a variable, the dialog box returns Yes or
No, depending on which button you click. For example, save the template as
ModalDialog.m, run the code, and then click Yes.
a = ModalDialog
6 Lay Out a UI Using GUIDE