The rot90(m) function rotates the matrix 90o counter clockwise.
Example
OML
>> rot90([1 2 3 4])
4
3
2
1
>> rot90( rot90([1 2 3 4]))
4 3 2 1