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

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
reference Sean de 9 Nov, 2010 16:49:17
setxor Sean de 9 Nov, 2010 16:49:17
rssFeed for this Thread

Contact us