handles = guidata(gcf);
Or, alternately, pass handles in to the function in the callback:
..., 'Callback', {@YourFunction,handles}, ...
and adjust the arguments of YourFunction to receive handles .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!