9 Examples of GUIDE UIs
The edit text callbacks execute when you enter text in an edit field and press Return
or click elsewhere in the UI. Even if you immediately click the Plot button, the edit text
callback executes before the plot button callback activates. When a callback receives
invalid input, it disables the Plot button, preventing its callback from running. Finally,
it restores focus to itself, selecting the text that did not validate so that you can re-enter
a value.
For example, here is the response to input of a time vector, [1 2 6 4 5 7 9], that does
not monotonically increase.