Two minute video shows how to validate GUI input. This makes sure that user input will not break your code. This example makes sure that the edit box value is not greater than twelve. This technique can be used for many different tests.
Other videos have been gathered here:
Other MATLAB Basics posts have been gathered here: