clustering the random numbers
Hi, Im having 10 number of ones and 30 zeros places in the random position in 1×40 matrix. now i need to cluster 1’s side by side (adjacent 1’s) among 10 1’s.The max number of adjacent ones is nmax? So if nmax is 5, then maximum number of adjacent ones will be 5.Thank YouHi, Im having 10 number of ones and 30 zeros places in the random position in 1×40 matrix. now i need to cluster 1’s side by side (adjacent 1’s) among 10 1’s.The max number of adjacent ones is nmax? So if nmax is 5, then maximum number of adjacent ones will be 5.Thank You Hi, Im having 10 number of ones and 30 zeros places in the random position in 1×40 matrix. now i need to cluster 1’s side by side (adjacent 1’s) among 10 1’s.The max number of adjacent ones is nmax? So if nmax is 5, then maximum number of adjacent ones will be 5.Thank You random number generator, matlab coder MATLAB Answers — New Questions