image thumbnail


version 1.2 (3.81 KB) by Bill McKeeman
Generate permutations.


Updated 30 Mar 2020

View License

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.

Cite As

Bill McKeeman (2021). perms (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!