From: "Ulrik Nash" <>
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$>
Reply-To: "Ulrik Nash" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1337010489 14822 (14 May 2012 15:48:09 GMT)
NNTP-Posting-Date: Mon, 14 May 2012 15:48:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2106050
Xref: 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?