combinations

Jaroslav Hajek highegg at gmail.com
Sun May 31 14:29:34 CDT 2009


On Sun, May 31, 2009 at 8:30 PM, Carlo Rossi <serosole at yahoo.it> 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



More information about the Help-octave mailing list