MATLAB: How to get another window after clicking on the push button

new windowpush button

I am making a tictactoe game. At first a window will come asking for the players' name. Then when the push button written "play" on it is clicked the window will change i.e. the window containing the game's plot will come.

Best Answer

Hi,
In your pushbutton callback, just close the current figure and open/call the new one.
function PlayButton_callback(...)
% close current figure
closereq;
% open the new one
GamePlotFigure(...);