[OctDev] Permutations

2010-10-29 Thread martin . ecarnot
Hello, I've been searching for a function that give all permutations of c elements in n, as "combnk" Matlab function. I fund in this forum http://octave.1599824.n4.nabble.com/combinations-td1636272.html a solution using "perms" function. However, "perms" function sets a matrix of prod(2:n) line,

[OctDev] Permutations

2010-11-16 Thread martin . ecarnot
Hello, I've been searching for a function that give all permutations of c elements in n, as "combnk" Matlab function. I fund in this forum http://octave.1599824.n4.nabble.com/combinations-td1636272.html a solution using "perms" function. However, "perms" function sets a matrix of prod(2:n) line,

Re: [OctDev] Permutations

2010-11-29 Thread martin . ecarnot
Hi, Thanks for your reply and the script. However, it doesn't work for me if k>2 (Octave 3.2.4) Martin - Mail Original - De: "Søren Hauberg" À: "martin ecarnot" Cc: octave-dev@lists.sourceforge.net Envoyé: Vendredi 26 Novembre 2010 23h07:54 GMT +01:00

Re: [OctDev] Permutations

2010-11-29 Thread martin . ecarnot
Superb! It works perfectly. Thank you Just a remark: I can't find it in octave-forge/statistics ... Martin - Mail Original - De: "Søren Hauberg" À: "martin ecarnot" Cc: octave-dev@lists.sourceforge.net Envoyé: Lundi 29 Novembre 2010 15h41:36 GMT +01:00 A

Re: [OctDev] Permutations

2010-11-29 Thread martin . ecarnot
1 5 2 3 2 4 2 5 3 4 3 5 4 5 Martin - Mail Original - De: "Søren Hauberg" À: "martin ecarnot" Cc: octave-dev@lists.sourceforge.net Envoyé: Lundi 29 Novembre 2010 15h05:21 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vi

Re: [OctDev] Permutations

2010-11-29 Thread martin . ecarnot
I looked here: http://octave.sourceforge.net/statistics/overview.html Ok if it's in SNV. Anyway, I already have the working function. Thanks Martin - Mail Original - De: "Søren Hauberg" À: "martin ecarnot" Cc: octave-dev@lists.sourceforge.net Envoyé: Lundi