From: <HIDDEN>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: Find beginning of epoches
Message-ID: <ef5cd86.2@webcrossing.raydaftYaTP>
Date: Mon, 9 Jul 2007 07:09:11 -0400
References: <ef5cd86.-1@webcrossing.raydaftYaTP> <1183974225.442027.51510@i38g2000prf.googlegroups.com> <ef5cd86.1@webcrossing.raydaftYaTP>
Lines: 12
NNTP-Posting-Host: 130.60.28.29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:417978



kai voges:
<SNIP looking for an event's time

one of the solutions

     a=0:10:40;
     b=31;
     [ix,ix]=min(abs(a-b));
% the result
     [ix;a(ix);b]

us