Prev: MSK BER simulation
Next: a question about matrix
From: Bjorn Gustavsson on 10 Aug 2006 11:52 Brie wrote: > > > The <getkeynow> function is exactly what I need. > Unfortunately, I don't have Java on my system. Is there a work > around? > Maybe you can use: set(gcf,'currentcharacter','C') Cont_or_Quit = get(gcf,'currentcharacter'); disp('Exit loop by pressing any key but ''C'',') disp(['with figure: ',num2str(gcf)',' focused.') while Cont_or_Quit=='C' Cont_or_Quit = get(gcf,'currentcharacter'); Do_loop_stuff end ....code of course untested... HTH, Bjoern |