Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matrix matching
Date: Thu, 13 Aug 2009 19:24:19 +0000 (UTC)
Organization: Xoran Technologies
Lines: 3
Message-ID: <h61p93$rrq$1@fred.mathworks.com>
References: <h61k2i$p69$1@fred.mathworks.com> <h61m3t$kcd$1@fred.mathworks.com> <h61oce$qq7$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1250191459 28538 172.30.248.38 (13 Aug 2009 19:24:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 13 Aug 2009 19:24:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:563195


indices=ismember(A,B,'rows');
Bnew=zeros(size(A));
Bnew(indices,:)=A(indices,:);