Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!c1g2000yqe.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: quick search of a binary array within a binary matrix.
Date: Mon, 30 May 2011 15:27:52 -0700 (PDT)
Organization: http://groups.google.com
Lines: 10
Message-ID: <318b8f0a-59aa-44cb-a363-9fe54a0e4efb@c1g2000yqe.googlegroups.com>
References: <is0oum$e82$1@newscl01ah.mathworks.com> <1f65bbd9-a072-4c94-a008-074edf3d3699@w21g2000yqm.googlegroups.com>
 <is0uio$r70$1@newscl01ah.mathworks.com> <70984629-c20c-440f-b18f-4f371aa02c60@e35g2000yqc.googlegroups.com>
NNTP-Posting-Host: 184.57.134.178
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1306794472 20899 127.0.0.1 (30 May 2011 22:27:52 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 30 May 2011 22:27:52 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c1g2000yqe.googlegroups.com; posting-host=184.57.134.178; posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1,gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:729373

You had a slight error in your definition of B - commas instead of
semicolons.  I also changed b so that there was a match.
Corrected version:

B = [1 0 0; 0 1 1; 0 0 1; 1 1 0]
b = [1 1 0]
matchingRow = find(b*B' == sum(b))

That works fine, so if you want that, that's fine, and it doesn't
require any toolbox functions.