powered by
k*90
rot90(A, k=1)
A
k
fliplr
flipud
rot90(matrix(1:4, 2, 2))
Run the code above in your browser using DataLab