Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
isnotmember

Subject: isnotmember

From: Ulrik Nash

Date: 14 May, 2012 15:48:09

Message: 1 of 3

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?

Subject: isnotmember

From: Doug Schwarz

Date: 14 May, 2012 15:54:54

Message: 2 of 3

On 5/14/2012 11:48 AM, Ulrik Nash wrote:
> 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?

~ismember


--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Subject: isnotmember

From: Ulrik Nash

Date: 14 May, 2012 17:04:16

Message: 3 of 3

Doug Schwarz <see@sig.for.address.edu> wrote in message <jor9se$850$1@dont-email.me>...
> On 5/14/2012 11:48 AM, Ulrik Nash wrote:
> > 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?
>
> ~ismember
>
>
> --
> Doug Schwarz
> dmschwarz&ieee,org
> Make obvious changes to get real email address.


So simple, thanks Doug!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us