From: Andrew on 16 Mar 2010 14:20 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 16 Mar 2010 14:28 "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 17 Mar 2010 03:35 "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 17 Mar 2010 06:10 "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 17 Mar 2010 06:24 "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,.
|
Next
|
Last
Pages: 1 2 Prev: hello Next: Can MATLAB warn you when you when you redefine existing functions? |