Owning Class: linalgebra
Requires: MathScript RT Module
c = rotate90(a)
c = rotate90(a, b)
Legacy Name: rot90
Rotates a matrix counterclockwise by a multiple of 90 degrees.
| Name | Description |
|---|---|
| a | Specifies the matrix you want to rotate. |
| b | Specifies the multiple of 90 degrees by which you want to rotate a. b is an integer. The default is 1. |
| Name | Description |
|---|---|
| c | Returns a rotated counterclockwise by b*90 degrees. c is a matrix with the same number of elements as a. |
A = [1, 2, 3; 4, 5, 6]
C = rotate90(A)