B = rot90(A) rotates
array A counterclockwise by 90 degrees. For multidimensional
arrays, rot90 rotates in the plane formed by the
first and second dimensions.
The function rotates each page of the array independently. Since a full 360 degree rotation (k = 4) leaves the array unchanged, rot90(A,3) is equivalent to rot90(A,-1).