Fliplr function:
The fliplr function "flips" the matrix from left to right (in another words the left-most column, the first column, become the last column and so on), and the flipud functions flips up to down. Note that in these illustrations mat is unchanged; rather than, the results are stored in the default variable ans each time.
The rot90 function rotates the matrix counter clockwise 90 degrees, therefore for illustration the value in the top-right corner becomes rather than the top-left corner and the last column becomes the first row:
>> mat
mat =
14 61 2 94
21 28 75 47
20 20 45 42
>> rot90(mat)
ans =
94 47 42
2 75 45
61 28 20
14 21 20