I have no experience with GUI programing in Matlab. I've written a very simple callback function to display some text when a message box is closed. The text never shows, so I think the callback function is not being called. Can you please take a look and tell me what I'm doing wrong?
h1=msgbox('Message Display','','none','non-modal');set(h1,'CloseRequestFcn',@closeMsg);function closeMsg(src,eventdata)disp('working')endwaitfor(h1)