[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: combinations
From: |
Jaroslav Hajek |
Subject: |
Re: combinations |
Date: |
Sun, 31 May 2009 21:29:34 +0200 |
On Sun, May 31, 2009 at 8:30 PM, Carlo Rossi <address@hidden> wrote:
> Hello,
> given A = [1; 2; 3]
> I need a vector of combination without repetition like this:
>
> (1,2), (1,3), (2,3)
>
> is there any matlab function?
> I didn't find it!
> thanks,
>
Asking about Matlab functions on the Octave ML is a nonsense. Assuming
you meant an Octave function, try "nchoosek".
regards
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz