MATLAB: How to make push buttons in GUI that are unable to be pressed until another push button is pressed

push buttons gui

For Example I have 5 push buttons, the last 4 push buttons can't be pressed until the 1st push button is pressed. How can I do this? :\ Gumawo. 🙂

Best Answer

When the pushbuttons are created, have the first one be set to 'enable', 'on', and the others set to 'enable', 'off'. Then in the callback for the first push button, if the circumstances are appropriate, set() 'enable', 'on' for the other 4 buttons.