Clear Filters
Clear Filters

exit program whilst code is running

3 views (last 30 days)
James Webber
James Webber on 5 Jan 2022
Commented: Rik on 5 Jan 2022
i am programming a game and i want to be able to turn the game off whilst it is playing, like half way through i want to be able to quit the game
  1 Comment
Rik
Rik on 5 Jan 2022
If your game is in a figure, it is probably as easy as closing the figure.
You can use the closereqfcn to save the game state if you like.

Sign in to comment.

Answers (0)

Categories

Find more on Strategy & Logic in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!