Code covered by the BSD License  

Highlights from

4.0 | 1 rating Rate this file 8 Downloads (last 30 days) File Size: 345 KB File ID: #10237 Version: 1.3
image thumbnail




06 Mar 2006 (Updated )

even, odd, cyclical, unique permutations of a set of vectors

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

Generate permutations of a set of vectors under flag control. The flags are 'all' (n factorial), even', 'odd', 'cycles', 'signs'. Combinations can be used. The flag 'unique' will remove duplicate entries. This file is a compatible extension of MATLAB perms(vec) where vec is a row vector. See also uniqueperms FEX # 18918.


This file inspired Hyperbolic Polynomial Toolbox (Hpt), Polytopes, and Tumbling Bucky Ball.

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
23 Sep 2011 Bill McKeeman

The version of perms has a bug. It sometimes gives the even permutations instead of the odd permutations and vice versa. It has been corrected and reissued as FX32978. This version, FX10237 should soon be deleted.

Comment only
30 Jan 2009 Rashid Iqbal


can you please teach me about the dmperm function which calculate the permulation of adajancy matrix.
Please explain this function with example.



08 Mar 2006

Clean up HTML documentation

17 Mar 2006

clean up Mlint messages

26 Feb 2008

The MATLAB perms turns an N-D matrix into a vector before generating permutations. This perms accepts a matrix of input vectors. I added a comment. Also FEX uniqueperms #18918 is faster and less demanding of memory for the cases it handles.

11 Apr 2009 1.1

Fix problem with R2009a, follow some MLINT advice

27 May 2009 1.3

license change

27 May 2009 1.6

fixed botched submission

Contact us