Path: news.mathworks.com!not-for-mail
From: "Norman " <nteferle@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: find complementary values
Date: Wed, 22 Sep 2010 12:22:04 +0000 (UTC)
Organization: University of Nottingham
Lines: 16
Message-ID: <i7csdc$7c3$1@fred.mathworks.com>
References: <i77trk$2ih$1@fred.mathworks.com> <i77ui5$hoe$1@fred.mathworks.com>
Reply-To: "Norman " <nteferle@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1285158124 7555 172.30.248.38 (22 Sep 2010 12:22:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Sep 2010 12:22:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 970932
Xref: news.mathworks.com comp.soft-sys.matlab:672196

Many thanks to Matt and everyone else who helped finding a solution to this.
Excellent!
Norman


"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <i77ui5$hoe$1@fred.mathworks.com>...
> "Norman " <nteferle@gmail.com> wrote in message <i77trk$2ih$1@fred.mathworks.com>...
> > This may be quite simple but I seem to have a brain block. arrgh.
> > 
> > I have a matrix of with numbers in the range between 1 and 100. The matrix does not contain all values between 1 and 100 and for some numbers there might be multiple instances. For example 0, 10, 11, 11, 15, ..., and 89.
> > 
> > Is there a(n) (elegant) way to find those numbers between 1 and 100 that are not represented in the matrix? i.e., 1-9, 12-14, ...,90-100.
> 
> TheSet=1:100;
> idx=ismember(TheSet,YourValues);
> Misising = TheSet(~idx),