Main Content
rot90
Rotate array 90 degrees
Description
Examples
Input Arguments
Tips
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 commandimagesc(B)
followed by the commandaxis xy
to automatically choose the x and y axes can cause the data to appear as though it was rotated clockwise instead of counterclockwise.
Extended Capabilities
Version History
Introduced before R2006a