Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Match matrix elements
Date: Wed, 21 Jan 2009 14:27:02 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 12
Message-ID: <gl7bbm$1v4$1@fred.mathworks.com>
References: <gl4esv$t3e$1@fred.mathworks.com> <MPG.23dfc2bb167363f998992c@news.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1232548022 2020 172.30.248.38 (21 Jan 2009 14:27:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 21 Jan 2009 14:27:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:512907


Loren Shure 

> > bobbaNO@mfn.SPAM.unipmn.it 
> > I would like to build a matrix (RESULTS) in which appears 1 if an element of B is present in A and zero if not present.
> > I used "ismember" function but the error HELP OF MEMORY appears.

> The short answer is:
> FinalAnswer = ismember(A,B)

that's exactly what the OP tried (the typical CSSM solution)... but he/she ran into memory problems...

us