From: Thijs on
Thanks everybody for your help. Especially Matt, your solution works perfectly!


"Matt J " <mattjacREMOVE(a)THISieee.spam> wrote in message <i1n2c5$jpn$1(a)fred.mathworks.com>...
> "Thijs " <t.denhamer(a)student.tudelft.nl> wrote in message <i1mtfl$73i$1(a)fred.mathworks.com>...
>
> > 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?
> =============
>
> Values=1:13000;
> N=histc(YourVector,Values);
>
> ValuesOccuringMoreThanOnce=Values(N>1);
> NumberOfOccurences=N(N>1);
First  |  Prev  | 
Pages: 1 2
Prev: unexplained calllib failure
Next: Topography plot