Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Help needed with indexing to the first occurrence of a value
Date: Thu, 4 Jun 2009 03:08:02 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 11
Message-ID: <h07dqi$8jg$1@fred.mathworks.com>
References: <h079fp$166$1@fred.mathworks.com> <h07b65$jv8$1@fred.mathworks.com> <8da3ca2b-7ac7-4b07-aca0-4be73de0a7d7@j20g2000vbp.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1244084882 8816 172.30.248.38 (4 Jun 2009 03:08:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 4 Jun 2009 03:08:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:544698


ImageAnalyst <imageanalyst@mailinator.com> wrote in message <8da3ca2b-
> Then 98 isn't in your array. 

At least to fp precision!


A = 98
B = 98 + eps(98)
A==B

Maybe a tolerance for comparison is needed?