From: Andrew on
Hi all

I had found a program somewhere to calculate the Statistical Mode of an array which gave all modes if the array was multimodal but, I can't seem to find it anywhere now. Does anyone know where I could find a program like this or maybe give me some advice so I can start building one myself?

Many Thanks

Andy
From: us on
"Andrew " <atb88(a)msn.com> wrote in message <hnoi56$7ue$1(a)fred.mathworks.com>...
> Hi all
>
> I had found a program somewhere to calculate the Statistical Mode of an array which gave all modes if the array was multimodal but, I can't seem to find it anywhere now. Does anyone know where I could find a program like this or maybe give me some advice so I can start building one myself?
>
> Many Thanks
>
> Andy

a hint:

help mode;
% then, carefully look at the 3rd output arg...

us
From: Andrew on
"us " <us(a)neurol.unizh.ch> wrote in message <hnoik5$f11$1(a)fred.mathworks.com>...
> "Andrew " <atb88(a)msn.com> wrote in message <hnoi56$7ue$1(a)fred.mathworks.com>...
> > Hi all
> >
> > I had found a program somewhere to calculate the Statistical Mode of an array which gave all modes if the array was multimodal but, I can't seem to find it anywhere now. Does anyone know where I could find a program like this or maybe give me some advice so I can start building one myself?
> >
> > Many Thanks
> >
> > Andy
>
> a hint:
>
> help mode;
> % then, carefully look at the 3rd output arg...
>
> us
I'm using MATLAB R2007b if that helps. None of the mode functions give more than one mode, the third output argument is [M,F,C]=mode(x)...if the data is multimodal it just gives, for example, C=[2x1 double]. I need a program which calculates all modes for an array. Thanks for your time anyway.
From: us on
"Andrew "
> ...the third output argument is [M,F,C]=mode(x)...if the data is multimodal it just gives, for example, C=[2x1 double]...

well... did you LOOK at the content of C(?)...

us
From: Andrew on
"us " <us(a)neurol.unizh.ch> wrote in message <hnq9q1$so4$1(a)fred.mathworks.com>...
> "Andrew "
> > ...the third output argument is [M,F,C]=mode(x)...if the data is multimodal it just gives, for example, C=[2x1 double]...
>
> well... did you LOOK at the content of C(?)...
>
> us
Yes, but I don't see how this gives me the values of the modes. I see that it gives me how many modes there are,.