Using a while loop to keep a menu open

7 次查看(过去 30 天)
James
James 2013-7-15
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 个评论
Matt J
Matt J 2013-7-15
编辑:Matt J 2013-7-15
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by