I have a 1158×1 column vector. The elements of the vector has values from 1 to 256. Each value is repeated for a maximum of 10 times. Some values are repeated even for less than 10 times. I want to convert into 10X256 matrix. I want all the 1's to be in 1st column, 2's in the second column and so on. To make it a proper matrix, fill rest of the values with zeros. The column vector is attached. How can I do that?
MATLAB: Convert Column vector into matrix
convert
Related Question
- Writing a function that merges two sorted vectors
- Trying to select multiple sections in an array where the sections are separated by constant size
- How to create csv file with dlmwrite for diffrent vector sizing
- How to use the values in a vector to use/represent the indices of another vector or matrix
- Vectorising setting values of array by reading from other array
Best Answer