Selecting random points from data file
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
amberly hadden
le 12 Déc 2014
Commenté : amberly hadden
le 12 Déc 2014
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
4 commentaires
Réponse acceptée
Mohammad Abouali
le 12 Déc 2014
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.
4 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!