MATLAB: Selecting random points from data file seleting random data Hi, is there any algorethim to select random points from a large data file. Lets say I want to select data after every 20 values. x = [1:0.1:1000] If I want y = select every 10th 20th or 50th point of x Thanks Amb Best Answer x = [1:0.1:1000];x_every10th=x(10:10:numel(x));x_every20th=x(20:20:numel(x));x_every50th=x(50:50:numel(x));You get the idea. Related SolutionsMATLAB: Selecting values randomly from dataset IDX = randperm(size(X,1));RandomRows = X(IDX(1:3),:); MATLAB: Replacing entries in matrices R(10,:) = [10, 10]; R(50,:) = [20, 20]; Related QuestionI have a matrix with 100 x 100, from that i have to select a 50 x 70 matrix, how should i do it in matlabSampling dataWant to change millimeter data of one column to meter say column 20 of datafile 400*50.Is the code is right.How Do i find the 20th number in a matrix
Best Answer