I have '1632x11' array and I would like to convert it to '32x11x51' array such that the values (32x11) after every 32 rows move to next page (thereby creating 51 pages) in an identical order as in 2D matrix i.e the values in row 33 of the 2D array become the values of row1 of page 2 in 3D array and so on.

I tried reshape, permute with reshape functions but the results are not that I would like to have.

It would be really appreciated if someone can help me with this issue.

More Sanchit Rathi's questions See All
Similar questions and discussions