| Author |
Comment/Response |
Matt
|
01/21/13 8:42pm
I am trying to count the times of every number occurred in the ordered list below and produce a list.
E.g
{-6,0,0,1,1,1,2,4,4,4,4,4,5} should return to the list {1,0,0,0,0,0,2,3,1,0,5,1}
I've tried
**List[Count[{-6,0,0,1,1,1,2,4,4,4,4,4,5},Range[-6,5]]**
But the output was {0} unfortunately. :(
Can anyone help?
URL: , |
|