rot90
Rotate array 90 degrees.
Syntax
B = rot90(A)
B = rot90(A, k)
Input argument
A - an array
k - an positive integer value: Rotation constant.
Output argument
B - rotated array.
Description
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.
Example
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated