MATLAB: How I make a pushbutton visible using another pushbutton in a GUI

guiinnaccesiblepushbuttonshow

"Pushbutton 1" shows and work with graphical data essential to the "pushbutton 2" subprogram task. Pushing "pushbutton 2" before "pushbutton 1" leads to error. I want to make "pushbutton 2" inaccesible in the GUI until user press "pushbutton 1". How can I do it?

Best Answer

You can use the properties 'enable' or 'visible'
set(handles.pushbutton1,'enable','off')
%or
set(handles.pushbutton1,'visible','off')
Related Question