I have a cube m by n by k which means i have k matrices m by n. I want to reshape it into one big matrix for example p row and q column (consider each m by n matrix as an element).
How can i do that? Can i use reshape function? for example these matrices when put together form a cube:
1 1 , 2 2 , 3 3 , ... , 16 16
1 1 2 2 3 3 16 16
in the above example, k=16, m=n=2.
i want to reshape them like this:
1 1 5 5 9 9 13 13
1 1 5 5 9 9 13 13
2 2 6 6 10 10 14 14
2 2 6 6 10 10 14 14
3 3 7 7 11 11 15 15
3 3 7 7 11 11 15 15
4 4 8 8 12 12 16 16
4 4 8 8 12 12 16 16