From: Bjorn Gustavsson on
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
First  |  Prev  | 
Pages: 1 2
Prev: MSK BER simulation
Next: a question about matrix