Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: combinations of N matrixes taken K at a time
Date: Sun, 11 Oct 2009 16:21:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 41
Message-ID: <hat0le$jeq$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1255278062 19930 172.30.248.37 (11 Oct 2009 16:21:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 11 Oct 2009 16:21:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2033973
Xref: news.mathworks.com comp.soft-sys.matlab:576526


Hey I&#8217;m a new user.
I want to perform this:

I have 6 square  matrixes A B C D E F
I want to find the possible combinations of these matrixes taken 3 at a time  and calculate the product of the determiner of each combination
In order to find all possible combinations I can do this:
MAT={&#8216;A&#8217;,&#8217;B&#8217;,&#8217;C&#8217;,&#8217;D&#8217;,&#8217;E&#8217;,&#8217;F&#8217;}
comb=nchoosek(MAT,3)
The results is:

comb = 

    'A'    'B'    'C'
    'A'    'B'    'D'
    'A'    'B'    'E'
    'A'    'B'    'F'
    'A'    'C'    'D'
    'A'    'C'    'E'
    'A'    'C'    'F'
    'A'    'D'    'E'
    'A'    'D'    'F'
    'A'    'E'    'F'
    'B'    'C'    'D'
    'B'    'C'    'E'
    'B'    'C'    'F'
    'B'    'D'    'E'
    'B'    'D'    'F'
    'B'    'E'    'F'
    'C'    'D'    'E'
    'C'    'D'    'F'
    'C'    'E'    'F'
    'D'    'E'    'F'
Then I know all combinations

Now I want to create with a for cycle a matrix with like this:

Det=[|A|*|B|*|C| , | A|*|B|*D|,&#8230;&#8230;&#8230;]
How can I perform this multiplication?
The problem is that in the matrix comb, A is a text.
Please give me some advice
Thanks