Hi. I'm looking for good expression equivalent to the following MATLAB matrix manipulation.
p=[1 4 2 3 5 11 7 13 6 12 8 14 17 9 15 18 10 16 19 20] ;%rearrange the columns of A A=A(:,p);
It is really painful when do above job manually. Any idea?
1 | initial version |
Hi. I'm looking for good expression equivalent to the following MATLAB matrix manipulation.
p=[1 4 2 3 5 11 7 13 6 12 8 14 17 9 15 18 10 16 19 20] ;%rearrange the columns of A A=A(:,p);
It is really painful when do above job manually. Any idea?