Attached is a simple app that accomplishes this as an example. The relevant code is in the first button's callback:
function computeFunction(app, event)
set(app.NotComputingLabel, 'Text', 'Computing...')
pause(3);
set(app.NotComputingLabel, 'Text', 'Done Computing!')
set(app.AccessibleAfterComputeButton, 'Enable', 'on')
end
You can set the second button to be disabled by selecting it in the Design View and changing the "Enable" property on the right, in the "Button Properties" section.
Best Answer