Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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: 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: 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

No tags are associated with this thread.

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.

Contact us