views:

52

answers:

1

I have an array of values lets say:

a =

   77.0000   83.3400  131.9300  131.9300  109.0600   37.6800   76.7100  189.3300   147.3300  171.0000   59.8800   72.4100

  443.5000  328.1500  343.6400  343.6400  272.6000  421.8600  393.7900  353.8400  256.4200  459.0800  434.3000  419.5900

Now I want to get frequent values from 1st row of this array like this:

b=131.9300 131.9300

and all other values that are near 131.

+2  A: 

Try:

>> [val count] = mode( a(1,:) )
val =
       131.93
count =
     2
Amro
but i dont want count ,i want to display the frequent values.
chee
like this 131.9300 131.9300
chee
maybe: `b = repmat(val,1,count)`
Amro

related questions