This simple function generates a vector made of positive integers, and finds all its possible permutations. Useful, perhaps, for illustrating the principle of permutation in matrices, in general.
This function is limited to maximum input usually 8 or 9 (takes some time to finish).
Ahmed A. Selman (2020). LVPermute (https://www.mathworks.com/matlabcentral/fileexchange/41308-lvpermute), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!