Path: news.mathworks.com!not-for-mail
From: "Ulrik Nash" <uwn@sam.sdu.dk>
Newsgroups: comp.soft-sys.matlab
Subject: isnotmember
Date: Mon, 14 May 2012 15:48:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 5
Message-ID: <jor9fp$ef6$1@newscl01ah.mathworks.com>
Reply-To: "Ulrik Nash" <uwn@sam.sdu.dk>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1337010489 14822 172.30.248.37 (14 May 2012 15:48:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 14 May 2012 15:48:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2106050
Xref: news.mathworks.com comp.soft-sys.matlab:767778

Hi Everyone,

I have looked for the function isnotmember, but there appears to be none.  I can use ismember to get the needed result, but the way I am thinking is surely not the best way (looping through, switching 1's to 2's, 0's to 1's, and then 2's, to 0's). 

What is the best way?