I am having trouble using unique and histc commands for the following task, anyone knows how the solve it?
1 view (last 30 days)
Show older comments
A =
1 5
2 7
2 9
3 5
4 4
5 8
5 4
5 6
6 2
First column refers to the values and the second one refers to the occurances. How it is possible to convert this matrix to the following
A =
1 5
2 16
3 5
4 4
5 18
6 2
thanks in advance
0 Comments
Answers (1)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!