MATLAB: Randomise array with non-integer values arrayrandom Hi, I want to randomise the elements in a 1-D array. I can't use randperm as the elements are non-integer values. Any ideas? Thanks, Richard Best Answer Never mind, I solved the problem this way:X=0.05:0.0025:0.15;randomiser = randperm(length(layer));X=X(randomiser); Related SolutionsMATLAB: Random number, Random integer x = 2:6;y = x(randperm(length(x),2)); MATLAB: For loop with non-linear input for ii = 1:length(layer) do_stuff_with(layer(ii));end Related QuestionRand integer values from an arrayFsolve returns non-integer exitflagRandom seed has to be an integerNARXnet non-integer delays problemGenerating random integer from -x to xEzplot non-integer axis limits
Best Answer