Transposed Matrix:
Steps to Transpose a Matrix:
- For a given matrix, flip its rows and columns.
- The element at position (i, j) in the original matrix moves to position (j, i) in the transposed matrix.
- The resulting matrix will have its rows and columns swapped.