rot90 {matlab} | R Documentation |
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 proebuck1701@gmail.com
rot90(matrix(1:4, 2, 2))