Source: https://www.lirmm.fr/~chemori/Temp/Matlab/GUI-Matlab.pdf