Re: INKEY$ equivalent in Matlab
- From: "Gajo de Bruin" <ikke@xxxxxxxxxx>
- Date: Thu, 8 May 2008 06:27:04 +0000 (UTC)
Thanks for the input!
In the File Exchange I did indeed find what you mentioned.
This program uses the UIWAIT command. I think that with a
few tweeks I can make it do what I want it to do.
Kind regards,
Gajo de Bruin
"Gajo de Bruin" <ikke@xxxxxxxxxx> wrote in message
<fvrl3b$sr9$1@xxxxxxxxxxxxxxxxxx>...
Hi,info
I'm trying to create a program that runs every hour or
sooner when a key is pressed.
So far I've been able to create the 1 hour loop with
on the screen that says when the program will startagain:
tic
a=toc;
while a<ReRunDelay
clc
display(['The program will restart in ' num2str
(floor(ReRunDelay-a)) ' seconds.'])
pause(1)
a=toc;
end
In my Qbasic times ( I know, a long time ago) I used the
INKEY$ to check for a keypress and break the loop:
DO
"code"
A$ = INKEY$ 'Get Key
IF A$ = CHR$(27) THEN END '<---ESC button
LOOP
Any idea's on how I can do this in Matlab?
Kind regards,
Gajo
.
- References:
- INKEY$ equivalent in Matlab
- From: Gajo de Bruin
- INKEY$ equivalent in Matlab
- Prev by Date: FIR filter design
- Next by Date: Re: Problem with matlab
- Previous by thread: Re: INKEY$ equivalent in Matlab
- Next by thread: Re: INKEY$ equivalent in Matlab
- Index(es):
Relevant Pages
|