title: MATLAB - Matrix Combinations Unique Columns
body: <p>I'm fairly new to MATLAB and I am trying to find an efficient method of solving the following problem.</p>
  
  <p>I have a matrix of 559 rows and 4 columns that I want to generate all the possible subsets containing 16 rows (preserving the row structure) such that each of the 4 columns contain unique values.</p>
  
  <p>Any help would be greatly appreciated.</p>