Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!news.alt.net!msrtrans!News.Dal.Ca!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Pausing Execution
Date: Thu, 5 Jun 2008 19:17:14 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 19
Message-ID: <g29e3q$2co$1@canopus.cc.umanitoba.ca>
References: <g29dq1$li5$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1212693434 2456 192.70.172.160 (5 Jun 2008 19:17:14 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Thu, 5 Jun 2008 19:17:14 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:472417



In article <g29dq1$li5$1@fred.mathworks.com>,
David Doria <daviddoria@gmail.com> wrote:
>When you run a big program, sometimes it would be nice to be
>able to say "stop for a second so I can look at something",
>but then continue.  The only way I know how to stop it at
>all is with ctrl-c.  Is there something similar to an
>"interrupt" where in your program you can say "pause if a
>key is pressed" without polling every time through a loop?

No there isn't, not in Matlab itself. See though this
recent thread,

http://www.mathworks.com/matlabcentral/newsreader/view_thread/170023

"COMMAND WINDOW INTERRUPT"

-- 
  "Is there any thing whereof it may be said, See, this is new? It hath
  been already of old time, which was before us."    -- Ecclesiastes