MATLAB: Select random number from a 3D matrixrandom selectHow to select 870 values from an assigned matrixclass = 23x256x144244select 870 valuse randomly from 144244 to getnew_class = 23x256x870 Best Answernew_class=class(:,:,randperm(144244,870));%as long as you have enough memory Related QuestionSelecting random number from martrixSelect random number from a variableSelecting random numbersHow to select a random number from set 5:20:2000
Best Answer