From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Binary matrix?
Date: Mon, 22 Oct 2012 11:41:08 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 10
Message-ID: <k63bcj$ric$>
References: <k5vp68$h5o$> <k5vuu0$5ua$> <k613c7$3kt$> <k61he8$j5p$> <k62ic0$6in$>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1350906068 28236 (22 Oct 2012 11:41:08 GMT)
NNTP-Posting-Date: Mon, 22 Oct 2012 11:41:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: comp.soft-sys.matlab:781138

"Chuck37" wrote in message <k62ic0$6in$>...
> "Matt J" wrote in message <k61he8$j5p$>...
> Thanks, but then I'd still be using 8x the memory necessary if I stored every bit using 8 bits.  For an image with millions of pixels, this is significant.

MATLAB supports primitively bitwise operations (see bitand, bitor, bitshift, etc...). They are slow and not convenient to work with.

If you want something with decent performance, I see only one choice: program your own MEX file as bit manipulation engine.