|
Ok, I have solved one of my two questions myself by:
x = length(v1)-length(unique(v1))
Now only one question remains, how can I find out which numbers were not unique in the rowvector v1?
Thanks.
Thijs
"Thijs " <t.denhamer@student.tudelft.nl> wrote in message <i1mtfl$73i$1@fred.mathworks.com>...
> Hello,
>
> I have a rowvector with a length of app. 300 that is filled with integer values ranging from 1 to app. 13000. Therefore, most values (out of the range of 1 to 13000) will not be present in the vector, some values will be unique, but other values are present multiple times. I am not really interested in the values that occur only once in the vector, but I do want to know which values occur more than once and also how many times these values occur.
>
> In short, I have two questions:
>
> - How can I check which values occur more than once in my vector?
> - How can I see how many occurences (of the values out of my first question) there are?
>
> Thanks in advance for the help.
|