MATLAB: GUI of the button button Hi, I want to ask about button. If the button want to be use once ,then the button couldn't be use, anyway, button is used once,not twice or three times, So, how to set the button for code. Teach me, thank you! Best Answer In its callback, disable it after it's pushed:figure;uicontrol('string','Push Me!','position',[10 10 100 50],'callback',@(src,evt)set(src,'enable','inactive','string','Now you can''t')); Related SolutionsMATLAB: Popup Menu visibility in MATLAB GUI set() the Visible property of the uicontrol to 'off' MATLAB: Button question http://www.mathworks.com/matlabcentral/answers/30983-help-please-button-click-determination Related QuestionHow to reset toggle buttons with a push buttonCreating a delete button in App DesignerHow to make push buttons in GUI that are unable to be pressed until another push button is pressed
Best Answer