I am writing a basic GUI using classes in MATLAB. It involves basic uicontrols() and GridLayout components. Normally, if I close the figure and issue a 'clear classes' everything is fine. However, if I inspect the figure created by the class, it seems to keep the objects around to where I cannot clear them. So far, the only solution I have found is to restart MATLAB.
Concerning my code, I do not store references to my class in any controls via 'UserData'.
Has anyone else ran into this sort of problem? Is there another solution to this?