Hi,
I want to find number of elements of each type in a double dimensional array
For example
A:{ 1 1 1 1 1
1 1 1 2
1 2 2
1 1 3
2 3
1 4
5 }
So the result should be
P1 =5 P2=0 p3 = 0 p4=0 p5=0
p1=3 p2=1 p3 = 0 p4=0 p5=0
p1=1 p2=2 p3 = 0 p4=0 p5=0
p1=2 p2=0 p3 = 1 p4=0 p5=0
p1=0 p2=1 p3 = 1 p4=0 p5=0
p1=1 p2=0 p3 = 0 p4=1 p5=0
p1=0 p2=0 p3 = 0 p4=0 p5=1
Any advice/idea would be really appreciated.