Code covered by the BSD License  

Highlights from
perms

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 1.61 KB File ID: #32978
image thumbnail

perms

by

 

Generate permutations.

| 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. It replaces FEX 10237. See also uniqueperms FEX # 18918.

MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
22 Sep 2011 Bill McKeeman

There was a bug in the earlier version of perms (odd perms were sometimes called even, and vice versa), a fact pointed out by Moritz H├Ąckell. I could not resubmit because I have retired and no longer have permission as the old "me".

Contact us