6 Lay Out a UI Using GUIDE
The dialog returns the text string, Yes or No, depending on which button you click.
Select this template if you want your UI to return a string or to be modal.
Modal dialogs are blocking, which means that the code stops executing while dialog
exists. This means that the user cannot interact with other MATLAB windows until they
click one of the dialog buttons.
To view the code for this dialog, open the template in the Layout Editor and click the
Editor button on the toolbar.