for example I have : [1 2 3; 4 5 6; 7 8 9] as 3×3 matrix. Now I want : [2 1 3; 5 4 6; 8 7 9] and every other combination of it. in other word I want all nchoosek(n,2) of columns of a nxn matrix.
MATLAB: How to Store all the possible combinations of columns of a matrix
combination of rowsmatrixstore
Best Answer