<< rosser | Elementary functions | round >> |
B = rot90(A) |
B = rot90(A, k) |
an array
an positive integer value: Rotation constant.
rotated array.
B = rot90(A, k) rotates array A counter clockwise by k * 90 degrees, with k is an integer value.
Consider flip function to flip arrays in any dimension.
x = eye(3, 2);
y = rot90(x, 0)
y = rot90(x, 1)
y = rot90(x, 2)
y = rot90(x, 3)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET