Changes

Jump to navigation Jump to search
Line 8: Line 8:  
*Here it is rotating the matrix around its center.
 
*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.
 
*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)
+
*For example MATRIXROTATE([[1,-1],[2,-2]],1) =
<math>{| class="wikitable"
+
{| class="wikitable"
 
|-
 
|-
 
| 2 || 1
 
| 2 || 1
 
|-
 
|-
 
| -2 || -1
 
| -2 || -1
|}</math>
+
|}
 
*So here 1st row entries are rotated in to 2nd column.
 
*So here 1st row entries are rotated in to 2nd column.
 
*Also 2nd rows are rotated in to 1st column entries.
 
*Also 2nd rows are rotated in to 1st column entries.
writer
6,694

edits

Navigation menu