Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Permutations in matlab
Date: Tue, 18 Aug 2009 07:23:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <h6dksn$q0v$1@fred.mathworks.com>
References: <h6dfju$juk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250580183 26655 172.30.248.38 (18 Aug 2009 07:23:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Aug 2009 07:23:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477385
Xref: news.mathworks.com comp.soft-sys.matlab:564110


"Midhun " <midhunjoyp@gmail.com> wrote in message <h6dfju$juk$1@fred.mathworks.com>...
> Hello,
>  How can I do permutations in matlab ? 
> 
> In Matalb , the command :   ' combntns(set,subset)'  returns a matrix whose rows are the various combinations that can be taken of the elements of the vector set of length subset.
> 
> How can I create a 'permutational' set instead of a 'combinatorial' set ?  

I think you want perms().