Code covered by the BSD License  

Highlights from
perms

4.0

4.0 | 1 rating Rate this file 14 Downloads (last 30 days) File Size: 345.04 KB File ID: #10237
image thumbnail

perms

by Bill McKeeman

 

06 Mar 2006 (Updated 27 May 2009)

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
Description

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.

Acknowledgements
This submission has inspired the following:
Polytopes, Tumbling Bucky Ball
MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
30 Jan 2009 Rashid Iqbal

Dear

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

Regards,

Rashid

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.

Please login to add a comment or rating.
Updates
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.

26 Feb 2008

clean up HTML doc.

11 Apr 2009

Fix problem with R2009a, follow some MLINT advice

27 May 2009

license change

27 May 2009

fixed botched submission

Tag Activity for this File
Tag Applied By Date/Time
permutation generator Bill McKeeman 22 Oct 2008 08:17:27
even Bill McKeeman 22 Oct 2008 08:17:27
odd Bill McKeeman 22 Oct 2008 08:17:27
cycical Bill McKeeman 22 Oct 2008 08:17:27
unique Bill McKeeman 22 Oct 2008 08:17:27
permutations Bill McKeeman 22 Oct 2008 08:17:27
flag Bill McKeeman 22 Oct 2008 08:17:27
cycical Noam 05 May 2011 02:18:56
even Noam 05 May 2011 02:18:59
flag Noam 05 May 2011 02:19:02
odd Noam 05 May 2011 02:19:04
permutation generator Noam 05 May 2011 02:19:07
permutations Noam 05 May 2011 02:19:11
unique Noam 05 May 2011 02:19:15

Contact us at files@mathworks.com