Suppose I have a matrix
M={{1,2,3},{4,5,6},{7,8,9}}//MatrixForm
What code do I write to interchange columns and make it into
{{2,3,1},{5,6,4},{8,9,7}}
The question mentioned here, Elegant operations on matrix rows and columns
does not solve the problem because, I am using //MatrixForm with the list, and it is not working for interchanging columns, while it works for interchanging rows !

RotateLeft /@ M– ZaMoC May 29 '19 at 11:08Permute[#,Cycles[{{3,2,1}}]]& /@ M– amator2357 May 29 '19 at 11:10M[[All, {2, 3, 1}]]? – kglr May 29 '19 at 11:15m2 = m; m2[[All, {1, 3}]] = m2[[All, {3, 1}]]-- instead of{3, 1}-->{1, 3}, use the permutation of columns you want. (Note, it's the same as @kglr's comment above.) – Michael E2 May 29 '19 at 11:26MatrixFormdoes not work like some other "Forms": https://mathematica.stackexchange.com/questions/3098/why-does-matrixform-affect-calculations – Michael E2 May 29 '19 at 11:30newM=M[[1,All,{2,3,1}]]? – user1066 May 29 '19 at 14:00