hello all, i have one question which is related to grouping columns. for instance:

`data=[2 0 2; 0 0 0; 0 2 0; 0 0 12];`

what i want are

`202 as one row and one col000 as one row and one col020 as one row and one col0012 as one row and one col`

Skip to content# MATLAB: Grouping values of 3 columns

###### Related Question

grouping values of 3 columns

hello all, i have one question which is related to grouping columns. for instance:

`data=[2 0 2; 0 0 0; 0 2 0; 0 0 12];`

what i want are

`202 as one row and one col000 as one row and one col020 as one row and one col0012 as one row and one col`

- How to replace double vectors from 0 to ‘000’
- How i can solve this error ”Cell contents assignment to a non-cell array object”.
- How to separate signals with diffrent frequencies
- How to remove rows with only zeros if the first column has the row names
- How to output a 2D integer array using Matlab mex
- Reading different columns from excel in Matlab
- Matrices with customized sums for rows and columns

## Best Answer