Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!t54g2000hsg.googlegroups.com!not-for-mail
From: Igor <itdevries@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: count number of "on" bits?
Date: Wed, 30 Jul 2008 02:05:26 -0700 (PDT)
Organization: http://groups.google.com
Lines: 9
Message-ID: <751f1ae9-7387-4ff8-b2a5-914019502b93@t54g2000hsg.googlegroups.com>
References: <3817980.1217390262927.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: 195.193.213.214
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1217408726 11576 127.0.0.1 (30 Jul 2008 09:05:26 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 30 Jul 2008 09:05:26 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: t54g2000hsg.googlegroups.com; posting-host=195.193.213.214; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 
Xref: news.mathworks.com comp.soft-sys.matlab:482588



On Jul 30, 5:57=A0am, bogfrog <jmcg...@rcn.com> wrote:
> How would I do a bitcount in matlab?
>
> For example, say I have the unsigned 8 bit integer 170, which is '1010101=
0'. =A0Is there a function to count that it has 4 "on" (1) bits?
>
> Thanks.

>>help bitget