Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Stopping a infinite loop

Subject: Stopping a infinite loop

From: Eng. Tavares

Date: 23 May, 2006 19:26:45

Message: 1 of 4

Srs.

How can I stop a infinite loop using the keyboard.
I read about the 'KeyPressFcn' but I don't know how to use the
handle function.

Can somebody help me?

Regards,

Subject: Stopping a infinite loop

From: Duane Hanselman

Date: 23 May, 2006 20:04:20

Message: 2 of 4

Eng. Tavares wrote:
>
>
> Srs.
>
> How can I stop a infinite loop using the keyboard.
> I read about the 'KeyPressFcn' but I don't know how to use the
> handle function.
>
> Can somebody help me?
>
> Regards,

Press the Control key and letter C key down simultaneously.

Duane
"Mastering MATLAB 7"

Subject: Stopping a infinite loop

From: Eng. Tavares

Date: 24 May, 2006 07:39:18

Message: 3 of 4

Isn't there another beautiful way to do this?
Because I'm acquiring data from serial port and I would like to
finish de loop correctly.

Duane Hanselman wrote:
>
>
> Eng. Tavares wrote:
>>
>>
>> Srs.
>>
>> How can I stop a infinite loop using the keyboard.
>> I read about the 'KeyPressFcn' but I don't know how to use the
>> handle function.
>>
>> Can somebody help me?
>>
>> Regards,
>
> Press the Control key and letter C key down simultaneously.
>
> Duane
> "Mastering MATLAB 7"

Subject: Stopping a infinite loop

From: Gabriele Bulian

Date: 25 May, 2006 12:51:22

Message: 4 of 4

Eng. Tavares wrote:
> Isn't there another beautiful way to do this?
> Because I'm acquiring data from serial port and I would like to
> finish de loop correctly.

It seems to me in the matlabcentral there is a cancel button, or stop
button, or something like this...
Gab

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us