Path: news.mathworks.com!not-for-mail
From: "Sven " <sven.holcombe@removethis.gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Find nearest index
Date: Tue, 31 Jul 2007 07:31:48 +0000 (UTC)
Organization: Japan Automobile Research Institute
Lines: 24
Message-ID: <f8moh4$kdt$1@fred.mathworks.com>
References: <f8mjkc$m3i$1@fred.mathworks.com> <f8mngc$20a$1@fred.mathworks.com> <f8mnng$6an$1@fred.mathworks.com>
Reply-To: "Sven " <sven.holcombe@removethis.gmail.com>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185867108 20925 172.30.248.35 (31 Jul 2007 07:31:48 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 31 Jul 2007 07:31:48 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 521344
Xref: news.mathworks.com comp.soft-sys.matlab:421818


"Kris Miller" <kris@nomail.com> wrote in message <f8mnng$6an$1@fred.mathworks.com>...
> ...
>  
> > Dear Sven,
> > 
> > sometimes I use the following command to do things like this:
> > givennumber=201;
> > [val,ind] = min(abs(myCol-givennumber));
> > 
> > I hope i got it right,
> > best wishes,
> > Kris
> > 
> > 
> Ups, too slow.
> 
> Kris
> 

Thanks all, very helpful.

Cheers,
Sven.