MATLAB rot90 function
Rotates matrix counterclockwise k*90
degrees.
rot90(A, k=1)
A |
matrix to be rotated |
k |
numeric scalar specifying the number of times to rotate (1..4) |
Rotating 4 times (360 degrees) returns the original matrix unchanged.
Returns matrix corresponding to argument A
having been rotated
argument k
number of times.
P. Roebuck proebuck@mdanderson.org
rot90(matrix(1:4, 2, 2))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.