Using a while loop to keep a menu open

2 views (last 30 days)
James
James on 15 Jul 2013
Hi I am making a script that allows to to choose from different buttons on a menu to get different pictures to pop up. I have a quick question:
Is there a way to keep the menu open so long as I do not click a certain button on it? I want to be able to open multiple things, but right now it closes me out after the first selection. I have an "Exit" button as "case 15." To do this I want to use a while loop. So I want the menu to stay open so while loop =/= case 15 stay open.
  1 Comment
Matt J
Matt J on 15 Jul 2013
Edited: Matt J on 15 Jul 2013
It's not evident how you're implementing the menu. If it's a GUIDE gui, it shouldn't have to be forced to stay open. It should remain there until the user explicitly closes it.

Sign in to comment.

Answers (0)

Categories

Find more on Loops and Conditional Statements 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!