I have a 1xm matrix and I want to choose one out of every 8 elements randomly, I can think of ways using for loops but I was hoping for a solution without for loops and efficient in terms of speed. Thanks
MATLAB: Choose one out of every 8 elements randomly
random sampling
Related Question
- How to alter a row of numbers based on when the number changes
- How do i select a random cell with a certain value from the matrix
- Randomly select an element from a vector satisfying a condition
- Does anyone know why it is also taking point 9 as convex hull point eventhough it shouldn’t
- Select a random number from each row of a matrix
- How to crop arrays using a vector? (reverse of padarray)
- I have row vector r=[1 2 3 4 5 6 7 8 9 10] and from this i generate another row vector of size 4 that is z=randperm(10,4) now i want to randomly select a single element from remaining element of r.
Best Answer