Permsnonindentical
Version 1.1.0.0 (1,56 KB) von
David Holdaway
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]
Generates all possible permutations using the inbuilt perms function and uses a siphon to distinguish which ones are the same.
Zitieren als
David Holdaway (2024). Permsnonindentical (https://www.mathworks.com/matlabcentral/fileexchange/34190-permsnonindentical), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2011b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Elementary Math >
- MATLAB > Mathematics > Elementary Math > Discrete Math >
Mehr zu Elementary Math finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
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 |