combsFS is an iterative algorithm equivalent to the MATLAB combs.m
P=combsFS(v,m)
example
P =combsFS(v, m) combsFS used to generate all possible combinations of size 3 of elements 5, 8, 9, 10, 11.
P =combsFS(v, m)
P
v
m
expand all
combsFS([5 8:11],3)
ans = 10×3 int8 matrix 5 8 9 5 8 10 5 8 11 5 9 10 5 9 11 5 10 11 8 9 10 8 9 11 8 10 11 9 10 11
It can be either a row or a column vector.
Data Types: single|double
single|double
Data Types - single|double
Knuth, D. E. (1997). "The Art of Computer Programming", Volume 1: Fundamental Algorithms, Third ed. Addison-Wesley. [pp. 52--74].
nchoosek