title: How to run the code for large variables
body: <p>I have one code like below-</p>
  
  <pre><code>W = 3;
  i = 4;
  s = fullfact(ones(1,i)*(W + 1)) - 1;
  p2 = unique(sort(s(sum(s,2) == i,:),2),'rows');
  </code></pre>
  
  <p>I can run this code only upto "i=11" but i want to run this code for upto "i=25".When i run these code for i=12 it shows error message "Out of Memory".
  I need to keep these code as it is.How can i modify these code for larger value of "i"?</p>
  
  <p>Matlab experts need your valuable suggestion.</p>