title: Cartesian product of sets in Scilab
body: <p>I've been looking for a fucntion that is building Cartesian product of given sets, just like this:</p>
  
  <pre><code>Example: A = [-1 -3 -5]; B = [10 11]; C = [0 1]; 
  
  X = SETPROD(A,B,C) 
  X = 
  
    -5 10 0 
    -3 10 0 
    -1 10 0 
    -5 11 0 
    -3 11 0 
    -1 11 0 
    -5 10 1 
    -3 10 1 
    -1 10 1 
    -5 11 1 
    -3 11 1 
    -1 11 1
  </code></pre>
  
  <p>Actually I was able to find such function for Matlab <a href="http://www.mathworks.com/matlabcentral/fileexchange/5898-setprod" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/5898-setprod</a>
  but unfortunately that doesn't work in Scilab.</p>
  
  <p>I know this problem is pretty straightforward, but this is my first program that I'm doing in Scilab. Thank you!</p>