Hi everyone, I would like to arrange my column according to odd and even numbers. Example data is shown below, I want to arrange column 1(even numbers) while column2 (odd numbers). Can anyone help me on how to arrange / swap into the according column.
nPASS1 nPASS166
nPASS1 nPASS64
nPASS101 nPASS12
nPASS101 nPASS88
nPASS103 nPASS166
nPASS103 nPASS90
nPASS114 nPASS229
nPASS114 nPASS51
nPASS12 nPASS127
4 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/659718-how-to-swap-column-according-to-odd-even-numbers#comment_1155933
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/659718-how-to-swap-column-according-to-odd-even-numbers#comment_1155933
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/659718-how-to-swap-column-according-to-odd-even-numbers#comment_1155948
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/659718-how-to-swap-column-according-to-odd-even-numbers#comment_1155948
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/659718-how-to-swap-column-according-to-odd-even-numbers#comment_1155953
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/659718-how-to-swap-column-according-to-odd-even-numbers#comment_1155953
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/659718-how-to-swap-column-according-to-odd-even-numbers#comment_1155988
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/659718-how-to-swap-column-according-to-odd-even-numbers#comment_1155988
Sign in to comment.