How do I rearrange the columns of a matrix? I really have o idea how to do this. Thankfs for any suggestions!
Asked
Active
Viewed 2,706 times
2 Answers
0
Hope the following code could help you:
ord={1,3,5,9,11}
Extract[mat,ord]~Join~Delete[mat,ord]
Wjx
- 9,558
- 1
- 34
- 70
Transpose[]if need be. – J. M.'s missing motivation Jun 09 '16 at 10:16Extract[]andDelete[]. Or, multiply your matrix with an appropriately permuted identity matrix. – J. M.'s missing motivation Jun 09 '16 at 10:24