Owning Class: linalgebra
Requires: MathScript RT Module
c = mirror(a, b)
Legacy Name: flipdim
Flips a matrix across a specified dimension.
| Name | Description | ||||
|---|---|---|---|---|---|
| a | Specifies the matrix you want to flip. | ||||
| b | Specifies the dimension across which you want to flip a. b is an integer that accepts the following values.
|
| Name | Description |
|---|---|
| c | Returns a with flipped elements. c is a matrix of the same size as a. |
A = [1, 2, 3, 4; 5, 6, 7, 8]
C = mirror(A, 1)