I am writing a script for a tic tac toe game and I want to use a push button as an exit which will restart the game. This is how I formatted the button:
c = uicontrol('Style','pushbutton','String','Exit')
I want the script file to run from the beginning when the button is pressed. Thanks!