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:05 +0000 (UTC)
Organization: Tianjin Normal University
Lines: 14
Message-ID: <gcl2c1$bs$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 1223560385 380 172.30.248.37 (9 Oct 2008 13:53:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 9 Oct 2008 13:53:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 444256
Xref: news.mathworks.com comp.soft-sys.matlab:494240


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

matlab2fmex would be an useful tool that help you turn your MATLAB code to Fortran MEX "automatically". 
You can find it at https://sourceforge.net/projects/matlab2fmex/