finding the most repeated value

  • Follow


how can i write a macro to find the most repeated value in matrix
0
Reply ege 12/30/2010 8:43:06 AM

"ege yag" <dreamtheater_ege@hotmail.com> wrote in message <ifhgmq$sim$1@fred.mathworks.com>...
> how can i write a macro to find the most repeated value in matrix

help MODE

Bruno
0
Reply Bruno 12/30/2010 8:57:04 AM


On Thu, 30 Dec 2010 08:43:06 +0000, ege yag wrote:

> how can i write a macro to find the most repeated value in matrix

something like:
use unique to get the values in the matrix
use histc with bins from above and count
use find for maximum number in count

Wishing a happy day,
 
0
Reply Andreas 12/30/2010 9:01:16 AM

On 12/30/2010 12:43 AM, ege yag wrote:
> how can i write a macro to find the most repeated value in matrix

Check

EDU>> help mode
  MODE   Mode, or most frequent value in a sample.

--Nasser

0
Reply Nasser 12/30/2010 9:29:15 AM

3 Replies
958 Views

(page loaded in 0.06 seconds)

Similiar Articles:













7/16/2012 9:40:09 AM


Reply: