I wannted to show a possible and a simple way in matlab to construct a gui with a Matlab class. All the GUI is included in just one file. In my opinion this is a very good and readable way to generate GUIs in Matlab.
The instance of the object will be destroyed when someone closes the figure !
If someone finds some ways to improve this can tell thanks.
Create scripts with code, output, and formatted text in a single executable document.