Random picking of adjacent data points
Show older comments
Hi,
May someone help me
I have data in one column and want to randomly pick adjacent 48 data points for 1000 times. For example, we have 10 data point (1, 2,3, 4,5,6,7,8,9,10) and we randomly pick 3 adjacent data points 5 times.
May some one help me ...
Thank you.

Accepted Answer
More Answers (1)
madhan ravi
on 29 Aug 2020
Edited: madhan ravi
on 29 Aug 2020
datasets = num2cell(reshape(data(randperm(48e3)), [], 1e3), 1);
%celldisp(datasets)
3 Comments
aa
on 29 Aug 2020
madhan ravi
on 29 Aug 2020
Edit your question a billion times to each new question.
aa
on 29 Aug 2020
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!