Counting distinct elements in a vector?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
James Baker
am 8 Mai 2021
Kommentiert: James Baker
am 9 Mai 2021
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!