Matlab

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

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
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.
Report
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
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.