Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mantain rows on matrix(ismember(matrix,vector))
Date: Sun, 7 Jul 2013 00:31:10 +0000 (UTC)
Organization: University of North Carolina Chapel Hill
Lines: 4
Message-ID: <kracse$slb$1@newscl01ah.mathworks.com>
References: <kr8iio$rp3$1@newscl01ah.mathworks.com> <kr9jie$6mr$1@newscl01ah.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1373157070 29355 172.30.248.47 (7 Jul 2013 00:31:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 7 Jul 2013 00:31:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:798929

Another solution:

c = a;
c(~ismember(a,b)) = {[]}