title: How to convert a matrix to an array of arrays?
body: <p>In <a href="https://stackoverflow.com/questions/26673412/how-to-convert-an-array-of-array-into-a-matrix">How to convert an array of array into a matrix?</a> we learned how to convert an array of arrays to a matrix. But what about the other way around? How do we go from <code>input</code> to <code>output</code>, as shown below?</p>
  
  <pre><code>input = [1 2 3; 4 5 6; 7 8 9]
  output = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
  </code></pre>