Please help. I'm new to matlab scripting and need a bit of help. I have a series of numbers: test = [1 1 1 2 2 2 3 3 3 4 4 4 5 5 5] which I wants to randomely fill into a 5×3 matrix without having the same number in the same row. How can I do this??? Potentially I could randomize the test vector and fill it into the 5×3 matrix but I dont know how to do this without getting the same number in the same row. PLEASE help…
MATLAB: Auto fill zero matrix without row-repetitions
for loopMATLABrandom
Related Question
- I have 6 numbers with repetation : 1,2,2,3,3,4. I want all possible combinations using any 4 of the numbers. How will I get that
- Get possible combinations for 3 elements but 5 columns
- Putting the combinations of a sequence in an cell array
- How I find rows with same elements but in flipped manner.
- How to cut duplicate rows from a matrix
- Identifying the repeated rows in a matrix and comparing them to another matrix
- How sort rows of matrix as per given index
Best Answer