Path: news.mathworks.com!not-for-mail
From: "Shaun " <s@s.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: problem with the find function in matlab
Date: Sat, 5 Jan 2008 16:05:59 +0000 (UTC)
Organization: Shaun Simmons (ID: 1-21CTFH)
Lines: 10
Message-ID: <flo9t7$5if$1@fred.mathworks.com>
References: <bf28c7fc-c160-40da-ac3b-0e7b48b025b1@v46g2000hsv.googlegroups.com>
Reply-To: "Shaun " <s@s.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1199549159 5711 172.30.248.35 (5 Jan 2008 16:05:59 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 5 Jan 2008 16:05:59 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 513223
Xref: news.mathworks.com comp.soft-sys.matlab:444479


>> format hex
>> a = [0:0.2:2];
>> a(4)
ans =
   3fe3333333333334
>> 0.6
ans =
   3fe3333333333333

Look into floating point numbers. There are several posts