MATLAB: How to remove a callback function from the UICONTROL in MATLAB 7.10 (R2010a)

MATLAB

I create a UICONTROL and set its callback to some function. For example:
h=uicontrol('callback','disp(''abc'')')
Is it possible to remove this callback such that the UICONTROL does not do anything when clicked?

Best Answer

In order to remove a callback function from UICONTROL just set that callback to empty as follows:
h=uicontrol('callback','disp(''abc'')')
set(h,'callback','')