From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Is this function available?
Date: Sat, 6 Dec 2008 22:13:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <ghetde$km4$>
References: <>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1228601582 21188 (6 Dec 2008 22:13:02 GMT)
NNTP-Posting-Date: Sat, 6 Dec 2008 22:13:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:505403

LeanMean82 <> wrote in message <>...
> Hey Guys,
> Quick Question.
> I just want to know whether matlab has a function that can create a matrix which is an intersection of column spaces of two original matrices.  Such that:
> A has 5 column vectors, B has 3 column vectors.  A and B share at least two column vectors and therefore creates a matrix C with these two column vectors.  
> Thanks.

  Yes.  Use the 'intersect' function with the 'rows' option.  (You'll have to do some transposing to make it work.)

Roger Stafford