stop matlab from execution

  • Follow


hello everyone here

i heard that there i some way to stop matlab from execution when it is taking very long time for execution and struck.  can anybody say me what is this.

also i want to know is it possible to convert from mex file to c file??

waiting for reply
0
Reply shahnaz 6/26/2010 10:04:07 AM

"shahnaz fatima" <shahnaz1981fat@gmail.com> wrote in message <i04jan$mju$1@fred.mathworks.com>...
> hello everyone here
> 
> i heard that there i some way to stop matlab from execution when it is taking very long time for execution and struck.  can anybody say me what is this.
> 
> also i want to know is it possible to convert from mex file to c file??
> 
> waiting for reply

well...
one of the pedestrian possibiliies:
open the task manager and kill it...

us
0
Reply us 6/26/2010 11:23:02 AM


"us " <us@neurol.unizh.ch> wrote in message <i04num$fai$1@fred.mathworks.com>...
> "shahnaz fatima" <shahnaz1981fat@gmail.com> wrote in message <i04jan$mju$1@fred.mathworks.com>...
> > hello everyone here
> > 
> > i heard that there i some way to stop matlab from execution when it is taking very long time for execution and struck.  can anybody say me what is this.
> > 
> > also i want to know is it possible to convert from mex file to c file??
> > 
> > waiting for reply
> 
> well...
> one of the pedestrian possibiliies:
> open the task manager and kill it...
> 
> us
ctrl+c in the matlab cmd window 

Oleg
0
Reply Oleg 6/26/2010 11:27:05 AM

"Oleg Komarov" <oleg.komarovRemove.this@hotmail.it> wrote in message <i04o69$mn$1@fred.mathworks.com>...
> "us " <us@neurol.unizh.ch> wrote in message <i04num$fai$1@fred.mathworks.com>...
> > "shahnaz fatima" <shahnaz1981fat@gmail.com> wrote in message <i04jan$mju$1@fred.mathworks.com>...
> > > hello everyone here
> > > 
> > > i heard that there i some way to stop matlab from execution when it is taking very long time for execution and struck.  can anybody say me what is this.
> > > 
> > > also i want to know is it possible to convert from mex file to c file??
> > > 
> > > waiting for reply
> > 
> > well...
> > one of the pedestrian possibiliies:
> > open the task manager and kill it...
> > 
> > us
> ctrl+c in the matlab cmd window 
> 
> Oleg

unfortunately, this methods is not guaranteed to work at all and - as a matter of fact - does never work if ML runs a computationally demanding loop, for instance...

us
0
Reply us 6/26/2010 11:44:05 AM

> unfortunately, this methods is not guaranteed to work at all and - as a matter of fact - does never work if ML runs a computationally demanding loop, for instance...

Hi there, this is one of the things I would like to learn too. A time ago, Bjeorn posted a question, but nobody seems to have discussed that. 
http://www.mathworks.com/matlabcentral/newsreader/view_thread/283867

At that time I did some web search to find that pause(0) should listen to Ctrl+C. But I haven't really tried to incorporate this in my codes, fortunately, this problem does not occur to me any often. If that info is true, can please someone give an example how best to place it in a code? Thanks.
0
Reply sscnekro 6/26/2010 2:55:25 PM

Dear Fatima,

Push Ctrl+C (Windows) in your keyboard to stop loop execution.
As I know, convert mex to C code is impossible, but convert Matlab code to C code is possible.
Please correct me if I am wrong.

pradhono
0
Reply Pradhono 6/26/2010 4:50:24 PM

5 Replies
485 Views

(page loaded in 0.089 seconds)

Similiar Articles:













7/22/2012 4:58:38 PM


Reply: