First, add ValueChangedFcn callback from app.CheckBox.
Then, define CheckBoxValueChanged function as the follows.s
function CheckBoxValueChanged(app, event)
value = app.CheckBox.Value;
if value == true
app.DropDown.Enable = false;
else
app.DropDown.Enable = true;
end
end
Here is a screenshot.