Path: news.mathworks.com!newsfeed-00.mathworks.com!arclight.uoregon.edu!canoe.uoregon.edu!mencken.net.nih.gov!not-for-mail
Reply-To: "Brett Shoelson" <shoelson.no.spam@removethis.helix.nih.gov>
From: "Brett Shoelson" <shoelson.no.spam@removethis.helix.nih.gov>
Newsgroups: comp.soft-sys.matlab
References: <eef9109.-1@webx.raydaftYaTP>
Subject: Re: Numerical recipes in Matlab
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <4azHd.2457$Ny6.4062@mencken.net.nih.gov>
Date: Wed, 19 Jan 2005 15:11:44 -0500
NNTP-Posting-Host: 137.187.96.54
X-Trace: mencken.net.nih.gov 1106165504 137.187.96.54 (Wed, 19 Jan 2005 15:11:44 EST)
NNTP-Posting-Date: Wed, 19 Jan 2005 15:11:44 EST
Xref: news.mathworks.com comp.soft-sys.matlab:255290




"Navin" <gnavin1@gmail.com> wrote in message 
news:eef9109.-1@webx.raydaftYaTP...
>I understand that there is no book as such for numerical recipes in
> matlab. Did anyone of you ever converted the Codes of Numerical
> recipes in C into Matlab using MEX functions (External/API
> interfaces). If yes please let me know.

I guess I have to come down on the side of the dissenters here. I've found 
NR (in C/C++, FORTRAN) to be very useful over the years, and while I have 
heard of the occasional bug, I have not experienced any myself. My code for 
Lomb-Scargle periodogram analysis (on the FEX) is a direct translation from 
NR/FORTRAN into ML. And while writing _efficient_ code in ML might not 
always be trivial, translating directly (including lots of unnecessary 
nested for loops, etc.) into mcode is pretty easy. So do as Scott 
recommends: use the NR in your favorite non-ML language as a coding guide 
and translate away!
Cheers,
Brett