Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 'find' returns non-integer indices (potential bug?)
Date: Fri, 2 Jan 2009 00:10:04 +0000 (UTC)
Organization: University of Memphis
Lines: 13
Message-ID: <gjjm0s$aan$1@fred.mathworks.com>
References: <gjd87p$q3m$1@fred.mathworks.com> <MPG.23c40a995544ece0989912@news.mathworks.com> <gjdgg6$kme$1@fred.mathworks.com> <gje8km$437$1@fred.mathworks.com> <gjfpvd$amc$1@fred.mathworks.com> <gjgbhu$hqd$1@fred.mathworks.com> <gji1s2$c1i$1@fred.mathworks.com> <gjir7t$ctl$1@fred.mathworks.com> <gjiuvt$fb7$1@fred.mathworks.com> <gjj0m9$lne$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1230855004 10583 172.30.248.35 (2 Jan 2009 00:10:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 2 Jan 2009 00:10:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 233092
Xref: news.mathworks.com comp.soft-sys.matlab:509449

"Matt " <mjacobson.removethis@xorantech.com> wrote in message <gjj0m9$lne$1@fred.mathworks.com>...
> 
> > Regaeding the usage of 'round', in one of my trials to solve the problem I did the following:
> > 
> > dilution = rand (size(S)) > ((length(S) - N0) / length(S));
> > AA = round (find(dilution));
> > if sum (mod (AA, 1)) ~=0,
> >      error ('Non-integer index !!!')
> > end;
> 
> That is pretyt bizarre. It might be good to see the full original code.  

Any chance this is being run on one of the old pentium processors that had the math/divide flaw hardwired into the chip?