David
Farruggio

MathGenie

rot90

Rotate array 90 degrees

Syntax and Description

rot90(A) rotates array A counterclockwise by 90 degrees. For multidimensional arrays, rot90 rotates in the plane formed by the first and second dimensions.
rot90(A,k) rotates array A counterclockwise by k*90 degrees, where k is an integer.

Back to functions