Page-wise functions like pagetranspose
operate on 2-D
matrices that have been arranged into a multidimensional array. For example, the elements in
the third dimension of a 3-D array are commonly called pages because
they stack on top of each other like pages in a book. Each page is a matrix that the
function operates on.
You can also assemble a collection of 2-D matrices into a higher dimensional array, like a 4-D
or 5-D array, and in these cases pagetranspose
still treats the
fundamental unit of the array as a 2-D matrix that the function operates on, such as
X(:,:,i,j,k,l)
.
The cat
function is useful for assembling a
collection of matrices into a multidimensional array, and the zeros
function is useful for preallocating a multidimensional array.