Permsnonindentical

lists all nonidentical permutations of a set of numbers i.e. [1,1,2] go to [1,1,2;1,2,1;2,1,1]
140 Downloads
Updated 6 Jan 2012

View License

Generates all possible permutations using the inbuilt perms function and uses a siphon to distinguish which ones are the same.

Cite As

David Holdaway (2024). Permsnonindentical (https://www.mathworks.com/matlabcentral/fileexchange/34190-permsnonindentical), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Elementary Math in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Modified loop so it didn't break for vectors of the form [a,b,b,b,b...]

1.0.0.0