ECG-Kit 1.0

File: <base>/common/a2hbc/scripts/DisableControPanel.m (230 bytes)

for field_names = rowvec(fieldnames(UCP_struct))
    ctrl_hdl = UCP_struct.(field_names{1});
    if( ~iscell(ctrl_hdl) && strcmpi(get(ctrl_hdl, 'type'), 'uicontrol' )  )
        set(  ctrl_hdl, 'Enable', 'off');
    end
end