Hello,
I'm a quite experienced GUI programmer and usually program GUIs manually without using GUIDE. However, now I struggle with a GUI which was developped by someone else using GUIDE.
I would like to define a callback function for a GUI element of the GUIDE GUI mygui.m/mygui.fig without using the standard GUIDE callback which is defined in mygui.m. Currently, the callback function defined in mygui.m just calls another function which is saved in a seperate file cb.m because it is quite long. To improve maintenance of the software, I would find it much clearer if I could directly define the callback function to be cb.m whithout having to go via a subfunction of mygui.m.
It tried to change the callback property in GUIDE like
cb(hObject,eventdata)
@(hObject,eventdata) cb(hObject,eventdata)
but I could not get it running. Now I wonder if it is at all possible to avoid the "normal" GUIDE callback in mygui.m? If there is another possibiliy - how to do it?
I'm using MATLAB R2010b.