Imagine I have an array A=Array(1,2,3,4,5,6,7,8,9) and I want it to convert into 2-dimensional array (matrix of NxM), for instance like this: A=Array(Array(1,2,3),Array(4,5,6),Array(7,8,9)).
Note, that rows and columns of the matrix is changable.
Thank you.