Path: news.mathworks.com!not-for-mail
From: "Dave Robinson" <dave.robinson@somewhere.biz>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Standalone too slow !!
Date: Wed, 19 Mar 2008 09:52:04 +0000 (UTC)
Organization: STFC Rutherford Appleton Laboratory
Lines: 32
Message-ID: <frqno4$8v9$1@fred.mathworks.com>
References: <frovg3$lnt$1@fred.mathworks.com>
Reply-To: "Dave Robinson" <dave.robinson@somewhere.biz>
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 1205920324 9193 172.30.248.35 (19 Mar 2008 09:52:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 19 Mar 2008 09:52:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 968489
Xref: news.mathworks.com comp.soft-sys.matlab:458005


"Blueblood Kingroyale" <edproject.cec@gmail.com> wrote in 
message <frovg3$lnt$1@fred.mathworks.com>...
> Hi,
> 
> I'm a novice Matlab user and currently doing a  voice
> recognition project in which I have made use of one or two
> GUIs as well. 
> The trouble is that when I create the standalone(.exe) out
> of my .m files using "mcc" the resulting application is
> performing V E R Y  S-l-o-w-l-y... what can I do to fix 
this? 
> Any code optimizing techniques would be welcome.
> 
> (As an aside - somebody please tell me how I can have the
> DOS prompt window NOT to be displayed whenever I run the
> standalone (.exe ))
> 
> Yours Truly,
> 
> Blueblood

What you need to do is identify the regions of your code 
that are consuming the time to process using the Matlab 
profiler. First try to optimize the efficiency of these, 
e.g. predefining arrays, vectorizing execution etc - if 
this helps. If the processing is then still too slow, 
rewrite the offending code in C/C++ and configure it into a 
mex file. 

Hope that helps

Dave Robinson