title: How to find row `i` of `A= nchoosek(1:m,n)`
body: <p>I want to find <code>A (i,:)</code>, where <code>A= nchoosek(1:m,n)</code>, for given <code>i</code>, <code>m</code>, and <code>n</code>. This command of MATLAB is very time and memory consuming, specially for large <code>m</code>. So, I do not want to construct whole of <code>A</code>. I want to build just row <code>i</code> of <code>A</code>.</p>
  
  <p>Although it seems that my question is duplicate of "<a href="https://stackoverflow.com/questions/20426957/combinations-from-a-given-set-without-repetition">Combinations from a given set without repetition</a>", but they are different. It just gives acceptable results for <code>A = nchoosek(1:m,2)</code>, and does not cover more than two columns.</p>