Counting distinct elements in a vector?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ok lets say i have a vector A = (1 1 2 2 3 4 4 4 4 5 7 7 7) the original A vector was related to actual time, hence why its increasing....i've already used the ceil function to bucket the original elements into distinct minutes... now i want to count up the elements that occur in distinct minutes.. so, for the example above- I expect a final result of 6....i cant figure out how to come up with that code.. please help
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Environment and Settings 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!