concatenate binary matrix column values

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

concatenate binary matrix column values

senthilkumar
Below binary matrix 'x'

           [,1] [,2] [,3] [,4]
  [,1]    0    1    0     1
  [,2]    1    1    0     0

To concatenate col1& 2, col3&4; resultant matrix shall be,

           [,1] [,2]
  [,1]    01   01
  [,2]    11   00

Request a code for the same....