"AHMET ANIL DINDAR" <adindar@iku.edu.tr> wrote in message
<fofbtp$304$1@fred.mathworks.com>...
> Hi all,
> Is there a script instead of ctrl+c?
>
> AAD
if you put: error('your quitting error message') in an
mfile, that'll hop out of your code... is that what you're
looking for?
"Ian Clarkson" <ian.clarkson@gesturetek.com> wrote in message <fofcrq$i8v$1@fred.mathworks.com>...
> "AHMET ANIL DINDAR" <adindar@iku.edu.tr> wrote in message
> <fofbtp$304$1@fred.mathworks.com>...
> > Hi all,
> > Is there a script instead of ctrl+c?
> >
> > AAD
>
> if you put: error('your quitting error message') in an
> mfile, that'll hop out of your code... is that what you're
> looking for?
I'm also looking for a matlab function that replaces Ctrl+C. 'error' is not good for my purpose because it is cought somewhere along the way and my program does not stop.
I want to call the same function that makes Matlab terminate when I press Ctrl+C.
> I'm also looking for a matlab function that replaces Ctrl+C.
> I want to call the same function that makes Matlab terminate when I press Ctrl+C.
There is no way to do that in any version of Matlab that has been released to date.
--
.signature note: I am now avoiding replying to unclear or ambiguous postings.
Please review questions before posting them. Be specific. Use examples of what you mean,
of what you don't mean. Specify boundary conditions, and data classes and value
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?
Walter Roberson <roberson@hushmail.com> wrote in message <3HHQk.22674$ID5.5580@newsfe01.iad>...
> Shlomi wrote:
>
> > I'm also looking for a matlab function that replaces Ctrl+C.
>
> > I want to call the same function that makes Matlab terminate when I press Ctrl+C.
>
> There is no way to do that in any version of Matlab that has been released to date.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.