Variations: pick k elements out of n

returns all n^k variations when picking k elements from an n-element vector
1.1K Downloads
Updated 13 Mar 2008

No License

Returns all n^k variations when picking k elements from an n-element vector (while allowing to pick the same element repeatedly).

Cite As

Felix Bie?mann (2026). Variations: pick k elements out of n (https://se.mathworks.com/matlabcentral/fileexchange/19200-variations-pick-k-elements-out-of-n), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Execution in MATLAB in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0