Matlab

Moderators: None (Apply to moderate this forum)
Number of posts: 2147

This Forum Only

Is this function available? Posted by LeanMan82 on 6 Dec 2008 at 2:56 PM
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.
Re: Is this function available? Posted by bdizzle329 on 6 Dec 2008 at 9:32 PM
: 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.
:

The function intersect(A,B,'rows') works based on what you wanted.
The only thing you need to do is invert A, B, and, the output of
intersect(). So it should look like this -> intersect(A',B','rows')'
-> this returns a matrix with columns that are in both A and B.

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic