How to swap multiple columns at once directly? – mathematica.stackexchange.com

Question Is there elegant code like m[[{2, 3;;4}]] = m[[{3;;4, 2}]]? Example Swapping column 2 with columns 3 to 4: In: o = 2; t = -2; lis = Array[x, {2, 5}]; % // MatrixForm Transpose@Insert[...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to swap multiple columns at once directly? – mathematica.stackexchange.com"