Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Standalone too slow !!

Subject: Standalone too slow !!

From: Blueblood Kingroyale

Date: 18 Mar, 2008 17:52:03

Message: 1 of 3

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

Subject: Re: Standalone too slow !!

From: Vihang Patil

Date: 19 Mar, 2008 08:31:03

Message: 2 of 3

"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

Hello
1. Compiling the application wont effect in faster speed.
You will get the same speed in the compiled application
and as well as in the MATLAB environment. Were you getting
satisfactory results running your application in the
MATLAB environment?
2. You can either use this functionality to suppress your
DOS command window
http://www.mathworks.com/matlabcentral/fileexchange/loadFil
e.do?objectId=3909&objectType=file

or try this

http://www.mathworks.com/matlabcentral/newsreader/view_thre
ad/129018#332703

HTH
Vihang

Subject: Re: Standalone too slow !!

From: Dave Robinson

Date: 19 Mar, 2008 09:52:04

Message: 3 of 3

"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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
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 Disclaimer prior to use.
Related Topics