Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!v46g2000hsv.googlegroups.com!not-for-mail
From: koolguyuf <tdgoswami@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: problem with the find function in matlab
Date: Sat, 5 Jan 2008 07:54:45 -0800 (PST)
Organization: http://groups.google.com
Lines: 15
Message-ID: <bf28c7fc-c160-40da-ac3b-0e7b48b025b1@v46g2000hsv.googlegroups.com>
NNTP-Posting-Host: 128.227.50.165
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1199548486 20876 127.0.0.1 (5 Jan 2008 15:54:46 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 5 Jan 2008 15:54:46 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v46g2000hsv.googlegroups.com; posting-host=128.227.50.165; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Opera/9.24 (Windows NT 5.1; U; en),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:444477


Hi,

I am facing some weird behavior using the find function in matlab
versions 7.0 and 7.5 . I have this extremely simple code to execute.

a = [0:0.2:2];
my_index = find(a == 0.6)

plz let me know whether you are getting my_index = 4 ? Suprisingly, I
am not able to get it.

Plz help.

Thanks
TD