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:
complement set

Subject: complement set

From: Young Ryu

Date: 9 Nov, 2010 21:35:04

Message: 1 of 3

Hi-

I have an array:
A=[1:1:25];
B=[3, 5];

I would like to know the complement set of B (thus [1, 2, 4, 6, ...25]). Is there any easy way to do this?

Thanks!

Subject: complement set

From: dpb

Date: 9 Nov, 2010 21:35:13

Message: 2 of 3

Young Ryu wrote:
> Hi-
>
> I have an array:
> A=[1:1:25];
> B=[3, 5];
>
> I would like to know the complement set of B (thus [1, 2, 4, 6, ...25]).
> Is there any easy way to do this?

doc setdiff

--

Subject: complement set

From: Sean

Date: 9 Nov, 2010 21:45:07

Message: 3 of 3

"Young Ryu" <ryuyr77@gmail.com> wrote in message <ibceq8$14i$1@fred.mathworks.com>...
> Hi-
>
> I have an array:
> A=[1:1:25];
> B=[3, 5];
>
> I would like to know the complement set of B (thus [1, 2, 4, 6, ...25]). Is there any easy way to do this?
>
> Thanks!

doc setxor

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