Hi All, I need some help with this problem.. Assume we have 4x4 matrix and I want to take the elements of matrix such that one element each row and each column. Here is the basic example..
m={{21, 2, 49, 3}, {7, 4, 17, 29}, {34, 32, 34, 18}, {13, 45, 41, 31}}
What I want is: Fix m[1,1] and m[2,2] and permute the other column and row. For example {21,4,34,31},{21,4,41,18}
Next only fix m[1,1]. For example {21,17,32,31},{21,17,18,45} and so on. When we fix m[1,1] we get 6 list of length of 4. And finally, fix m[1,2], m[1,3] and m[1,4] do the same thing.
Final result should be 24 list of length of 4.
Thanks in advance..