MATLAB: How to randomly and uniquely select 2000 samples from an array with 1×460800. #array #random #unique Any help much appreciated. Best Answer val(randperm(numel(val),2000)) Related SolutionsMATLAB: Randperm for decimals/below 1 result = rand(16,1) .* 1.3; MATLAB: Number of unequal elements in a matrix unique(A) Related QuestionHow could I extract last column in a matrix if I don’t know the size of matrixRandomly select elements of an arrayGet a set of 10000 unique random 2-D coordinatesRandom resampling with rebalancementHow to select randomly 30 numbers from 108 and maintain uniqueness
Best Answer