Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <k5vp68$h5o$1@newscl01ah.mathworks.com> <k5vuu0$5ua$1@newscl01ah.mathworks.com> <k613c7$3kt$1@newscl01ah.mathworks.com> <k61he8$j5p$1@newscl01ah.mathworks.com> <k62ic0$6in$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1350906068 28236 172.30.248.48 (22 Oct 2012 11:41:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 22 Oct 2012 11:41:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:781138

"Chuck37" wrote in message <k62ic0$6in$1@newscl01ah.mathworks.com>...
> "Matt J" wrote in message <k61he8$j5p$1@newscl01ah.mathworks.com>...
> 
> 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.

Bruno