Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: count number of
Date: Wed, 30 Jul 2008 04:22:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 3
Message-ID: <g6oq99$dh6$1@fred.mathworks.com>
References: <3817980.1217390262927.JavaMail.jakarta@nitrogen.mathforum.org>
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 1217391721 13862 172.30.248.38 (30 Jul 2008 04:22:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 30 Jul 2008 04:22:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 939004
Xref: news.mathworks.com comp.soft-sys.matlab:482531



d=17465765
[crap,e]=log2(max(d));
n=sum(rem(floor(d*pow2(1-max(1,e):0)),2));