plot large dataset with sample points

5 visualizzazioni (ultimi 30 giorni)
Sam Alex
Sam Alex il 22 Dic 2012
Hello,
I would like to plot 2 large datasets (for comparison) using only sample points from each set so that markers can be clear (say 50 points). How will I do this and how do I choose these points from each dataset?
Thanks

Risposte (1)

Image Analyst
Image Analyst il 22 Dic 2012
If a subset of the points would illustrate the situation just as well as the complete set, why not just select some of them at random?
indexesToUse = randperm(totalNumberOfPoints, numberToUse);
  4 Commenti
Sam Alex
Sam Alex il 22 Dic 2012
True, but these indices always taken at random or is there a way better to represent the data from your experience?
Image Analyst
Image Analyst il 22 Dic 2012
They're not always taken at random, that's just one way. You could take just the first N of the points, though if there's a trend in the data you might want to take every 1000th point or so, like this dataSubSet = data(1:1000:end). Basically use whatever method that works for you.

Accedi per commentare.

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by