Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: much faster MATLAB
Date: Thu, 9 Oct 2008 13:53:11 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 28
Message-ID: <gcl2c7$gi$1@fred.mathworks.com>
References: <gcebi7$otk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1223560391 530 172.30.248.37 (9 Oct 2008 13:53:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 9 Oct 2008 13:53:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869871
Xref: news.mathworks.com comp.soft-sys.matlab:494276


"Kevin Johnson" <defer.jof@gmail.com> wrote in message <gcebi7$otk$1@fred.mathworks.com>...
> All,
> 
> I have been using MATLAB for many years now but finally its speed has become a major limiting factor.  As time has gone on, large segments of my code are no longer in need of further development (though other segments are). These same segments are the ones that consume most of the computation time. 
> 
> Mex files are the solution I suppose; however the last time I programmed in Fortran was 30 years ago, and in C, never. In reading about mex files, it sounds daunting for a basically amateur (in terms of skills) programmer like me. 
> 
> In a broad sense, what would be the best approach to substantially (at least 10x) speed up these unchanging swaths of code, for someone who is not a programmer?  I'd be able to invest in a solution within reason.
> 
> Thanks
> 
>  

There's also Embedded MATLAB that you can use to generate C code or a C-MEX file directly from a subset of MATLAB commands.

Embedded MATLAB
http://www.mathworks.com/access/helpdesk/help/toolbox/eml/eml_product_page.html

(Embedded MATLAB MEX)
http://www.mathworks.com/access/helpdesk/help/toolbox/eml/ug/bq2wkmb-1.html

If you're not concerned about getting the actual C-code, and just want a C-MEX file, then you can go with Embedded MATLAB MEX, which would require either Simulink and/or Fixed-Point Toolbox.

Here's where it talks about the Embedded MATLAB subset:
http://www.mathworks.com/access/helpdesk/help/toolbox/eml/ug/bq1h2z5-1.html