[TOC]
rot90
Rotate array by 90 degrees
Usages
rot90(A)
- It rotates
A counter-clockwise by 90 degrees.
- Only planes parallel to the plane formed by the first and second dimensions are rotated.
rot90(A, k)
- It rotates
A by k * 90 degrees. It rotates counter-clockwise if k > 0, and clockwise if otherwise.
- The input
k should be an integer scalar.
- Only planes parallel to the plane formed by the first and second dimensions are rotated.