N = [ 1 2 3 4; 5 6 7 8; 9 10 11 12];N_Inv = N(:,end:-1:1);Output:N_Inv = 4 3 2 1 8 7 6 5 12 11 10 9
rot90(w,2)flipdim(w,2)