title: Matlab - partition a matrix
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5385174/how-can-i-divide-split-up-a-matrix-by-rows-between-two-other-matrices">How can I divide/split up a matrix by rows between two other matrices?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a matrix A with 100 rows, I want to randomly partition it into 2 matrices, one that will have 70 of the rows of A, and the other that will  have the remaining 30 rows. How is this done?</p>