how to find the count of unique values of a column in a array?
11 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Adam
2021-11-3
doc histcounts
should give you the number of each of the elements in your array, so long as you parameterise it correctly if you have discrete values.
doc accumarray
should also work for this, probably more simply, although its syntax has often confused me in the past
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!