Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!r5g2000yqb.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Simple Problem - Command Prompt
Date: Wed, 4 Nov 2009 05:48:01 -0800 (PST)
Organization: http://groups.google.com
Lines: 21
Message-ID: <398467f9-9532-4eee-9959-a00cd35e2836@r5g2000yqb.googlegroups.com>
References: <hcpvhk$ofg$1@fred.mathworks.com> <a9793a7a-116d-461a-9e62-60d65523a0a2@q40g2000prh.googlegroups.com> 
	<hcrqhm$hj2$1@fred.mathworks.com>
NNTP-Posting-Host: 192.44.136.113
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257342481 5359 127.0.0.1 (4 Nov 2009 13:48:01 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 4 Nov 2009 13:48:01 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r5g2000yqb.googlegroups.com; posting-host=192.44.136.113; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	CyberSafe-IWA-Enable; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; 
	.NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 
	3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:582364


On Nov 4, 7:03 am, "Ahmad " <climbe...@gmail.com> wrote:
> I mean th command prompt which opens in which the code is executed when the exe is created from the m-file. I mean the command prompt environment in which the exe opens. Once it computes the results it closes immediately! How should I make it remain open?

------------------------------------------------------------------------------------------------------------------------------------
You need to open a command window and run your exe from there.  If you
just double click the icon, it will open the command window briefly,
crash and dump the error message to it, and then (unfortunately) shut
down that window.  This is what you're experiencing.

If you open a separate command window manually (say with Start/Run/cmd
in Windows XP), change directory to the folder, and run the program,
the window won't shut down and any error messages will remain in view.

Or alternatively run it from the command window panel in MATLAB with
the ! operator, like this:
!myapp
Then the error messages will remain in the MATLAB command window.