Rotate array 90 degrees
Use the flip
function
to flip arrays in any dimension.
When visualizing rotated data, the coordinate system used for plotting can
impact the appearance of the rotation. For example, plotting rotated data
B
using the command imagesc(B)
followed by the command axis xy
to automatically choose the
x and y axes can cause the data to
appear as though it was rotated clockwise instead of counterclockwise.