image thumbnail

permnsub(V,N, IX)

version (2.99 KB) by Jos (10584)
Subset of all permutations with repetition


Updated 20 May 2015

View License

Its functionality is now implemented in my function PERMN, available on the File Exchange
permnsub - subset of all permutations with repetition
M = permnsub(V,N,IX) returns a subset of all permutations, with
repetition, of N elements, taken from the elements in vector V. M has
the size numel(IX)-by-N. V can be an array of numbers, cells or strings,
and M will be of the same type as V.

Use PERMN instead

Cite As

Jos (10584) (2022). permnsub(V,N, IX) (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: permn

Community Treasure Hunt

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

Start Hunting!