Manuals/calci/MATRIXROTATE

MATRIXROTATE (a,NumberOfSteps)


  • is any matrix.
  • number of steps.

Description

  • This function showing the rotation of the matrix.
  • In  ,   is any matrix of any order.
  • Here it is rotating the matrix around its center.
  • So each entries will go right or left and up or down according to the number of steps to be given.
  • For example MATRIXROTATE([[1,-1],[2,-2]],1) =
2 1
-2 -1
  • So here 1st row entries are rotated in to 2nd column.
  • Also 2nd rows are rotated in to 1st column entries.

Examples

1. MATRIXROTATE([[6,9,12],[43,16,-17],[3,8,10]],2)

3 43 6
8 16 9
10 -17 12

2. MATRIXROTATE([[3,8,12,16,10],[22,16,54,11,14],[32,76,89,78,54],[10,13,76,23,41],[67,34,51,90,14]],3)

10 32 22 3 8
67 76 13 76 12
34 23 89 16 16
51 78 11 54 10
90 14 41 54 14


Related Videos

Matrix Rotate

See Also

References