MATLAB: Block and un-block items

enabled

Hello,
in guide I have few pushbuttons, uitables, radiobuttons…..few are enabled and few of them are disabled…
If I press button Calculate, than calculation is executed. During calculation I need disable all items. If calculation is finished, than enabled items before calculation have to be again enabled and disabled items before calculation have to be again disabled.
Haw can I do it?
msgbox? Or is there anything better?
Thank you

Best Answer

Each object in a GUI has a unique name which you can use to set parameters for. As an example, for a pushbutton you would use:
set(handles.pushbutton,'Enable','on')
set(handles.pushbutton,'Enable','off')
to enable/disable the button with name pushbutton.