Addendum to my last comment: deleting the owning object does close the figure; closing the figure window clears (don't know if that's the right word) the object, but the variable it was assigned to still exists. That's OK, but it could be confusing.
This is a wonderful idea! I will be using this approach for a database browser. However, the linking between figure and object doesn't work. Closing the figure does NOT delete the object, and deleting the object does NOT delete the figure. I tried some variations of your ideas - and the basic approach seems sensible - but something is preventing this to work. Is it the Matlab event handling?
You solved my problem by providing this file. i was trying to implement the GUIDE created GUI using object of class but it was reporting errors when any of the widgets on the GUI was clicked. This is a sound way of doing it. Thank you.
P.s. How can we have different windows of GUI when two different objects from the same class access the GUI.