Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to terminate running matlab script?
Date: Thu, 6 Nov 2008 13:32:02 +0000 (UTC)
Organization: IDF
Lines: 14
Message-ID: <geurki$h8n$1@fred.mathworks.com>
References: <f766dv$16o$1@fred.mathworks.com> <f7677a$9dq$1@fred.mathworks.com> <f7681t$hcf$1@fred.mathworks.com> <fofbtp$304$1@fred.mathworks.com> <fofcrq$i8v$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225978322 17687 172.30.248.35 (6 Nov 2008 13:32:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 6 Nov 2008 13:32:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 903179
Xref: news.mathworks.com comp.soft-sys.matlab:499298


"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.