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]
141 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 (2026). Permsnonindentical (https://au.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
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