Random picking of adjacent data points
Afficher commentaires plus anciens
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.

Réponse acceptée
Plus de réponses (1)
madhan ravi
le 29 Août 2020
Modifié(e) : madhan ravi
le 29 Août 2020
datasets = num2cell(reshape(data(randperm(48e3)), [], 1e3), 1);
%celldisp(datasets)
3 commentaires
aa
le 29 Août 2020
madhan ravi
le 29 Août 2020
Edit your question a billion times to each new question.
aa
le 29 Août 2020
Catégories
En savoir plus sur Descriptive Statistics and Insights dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
