I have an array say A=[1 4 -3 2 4 6 7 8 17 -23 -34 4 5 6
6 7 -5 4 7 41 2 5 23 -3 4 7 7 41 ]
Now I need to get the output as:
[1 4 -3 2 6 7 8 17 -23 -34 5 6 7 -5 4 41 2 5 23 -3 4 7
1 3 1 1 2 1 1 1 1 1 1]
Where the third row gives the count of occurrence of the column (given by first two rows in the output matrix) uniquely.