Back to Core Functions
rot90
Rotate array 90 degrees
Syntax
B = rot90(A) B = rot90(A, k)
Description
Rotates the matrix 90 degrees counterclockwise. Optional argument k specifies the number of 90-degree rotations.
Parameters
| Name | Description |
|---|---|
| A | Input matrix |
| k(optional) | Number of 90° rotations (default: 1) |
Returns
Rotated NDArray