title: What is a way to create all vectors from the hypercube in dimension n?
body: <p>I want to store in a matrix all the vectors that are created by the hypercube in dimension n, that is, for dimension n=3 for example :</p>
  
  <pre><code>matrix = [[0 0 0], [0 0 1], [0 1 0], [0 1 1],
            [1 0 0], [1 0 1], [1 1 0], [1 1 1]]
  </code></pre>
  
  <p>Is there a good way to do it in scilab ?</p>
  
  <p>Thank you !</p>