how to count number of values present in some defined intervals?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
TRAILOKYA
le 29 Mar 2014
Commenté : TRAILOKYA
le 31 Mar 2014
Hi, suppose i have a column matrix (:,1). i have to count the number of values lying in the interval say 0-2,2-4,4-6,6-8,8-10. for example say i have a column matrix of values 0.1, 0.2,1,1.9,2.1,2.5,3,4.1,5,5.2,6,8,9.1,9.9. if i have to count the values lying in the given interval how to do it in matlab??? please help
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 29 Mar 2014
a=[0.1, 0.2,1,1.9,2.1,2.5,3,4.1,5,5.2,6,8,9.1,9.9]
id=[0 2 4 6 8 10]
freq=histc(a,id)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Scatter Plots 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!