i need to degenerate a matrix. I have 1 column with 1,1,2,2,2,3,3..748,749,749 ( max 5 repetitions for each integer, but random, 2340 in total), I need to select the data in the rows with the same integer value and pick one at random to give 749 rows
MATLAB: I need to degenerate a matrix. I have 1 column with 11,2,2,2,3,3..748,749,749 ( max 5 repetitions for each integer, but random, 2340 in total), I need to select the data in the rows with the same integer value and pick one at random to give 749 r
Related Question
- Match elements of column array to first column of a matrix then append row of matrix to array
- Problem indexing a matrix from arrays
- Delete matrix in cell
- Replacing row values from another matrix
- How to select two number randomly from an array and perform swapping between these two number
- Sorting and randomising a matrix according to a particular constraint.
Best Answer