Code covered by the BSD License  

Highlights from
quickgui

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 5.09 KB File ID: #32272

quickgui

by

 

brings up a tiny gui. use it e.g. to stop a loop inside a function by pressing a button.

| Watch this File

File Information
Description

i use it in for or while loops, if i want the user to be able to interrupt the loop at any time (an easier solution would of course be hm=msgbox('stop') and check for ~ishandle(hm). anyway, in quickgui, the user can define and use any (or all) of three buttons, which e.g. can be used to pass instructions inside a loop at any time, without the need for stopping the loop and waiting for the user.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
21 Jun 2012 Georg D

to make sure that the gui is responsive in a loop, i usually include a pause(0.01) before checking the button's value.

Contact us