I want to access to row i
of A=nchoosek(1:m,n)
. This command of MATLAB is very time consuming, specially for large m
. So, I do not want to construct whole of A
. I want to build just rowi
of A
.
Although, it seems that my question is duplicate of "Combinations from a given set without repetition", but they are different.
That answer did not cover different columns. It is just get acceptable results for A = nchoosek(M,2)
. I want to find A (i,:)
, where A= nchoosek(1:m,n)
, for given i
, m
, and n
.