Code covered by the BSD License  

Highlights from
quickgui

quickgui

by

 

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

examplequickgui
function examplequickgui

mygui = openfig('quickgui.fig','new'); hmygui = guihandles(mygui);
set(hmygui.togglebutton1,'String','getmeoutofhere');
set(hmygui.togglebutton2,'String','anotherbuttontouse');
set(hmygui.figure1,'Name','somename');

while 1 == 1
    pause (1);
    disp('keep button on quickgui pressed to get me out of this loop')
    if get(hmygui.togglebutton1,'Value')==1
        break
    end
end

close (mygui);

Contact us