Path: news.mathworks.com!not-for-mail
From: "Pr B" <pb2297@columbia.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: cross referencing columns and matrices
Date: Sat, 21 Feb 2009 02:45:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <gnnprg$mpq$1@fred.mathworks.com>
References: <gnn8aq$9sn$1@fred.mathworks.com> <gnng65$94d$1@fred.mathworks.com>
Reply-To: "Pr B" <pb2297@columbia.edu>
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 1235184304 23354 172.30.248.38 (21 Feb 2009 02:45:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 21 Feb 2009 02:45:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1448256
Xref: news.mathworks.com comp.soft-sys.matlab:519807

for i = 1: size(table1,1)
for j = 1:size(matrix,1)
if sum(table(i,:)==matrix(j,:))==4
zerovector(i)=1
end
end
end

this fails, however, and also cannot be too efficient.  any ideas?