"someone" wrote in message <jblbe4$sdg$1@newscl01ah.mathworks.com>...
> "Mohd Farhan " <farhan7787@gmail.com> wrote in message <jbl0bo$lcg$1@newscl01ah.mathworks.com>...
> > hello,
> >
> > Let suppose i have 10 different values columnwise from n=1 to 10.
> >
> > n  values
> > 
> > 1  22
> > 2  42
> > 3  41
> > 4  99
> > 5  99
> > 6  98
> > 7  77
> > 8  09
> > 9  81
> > 10  01
> >
> > Now if we apply "d=max(n)" it will give 99.
> > but i want to know at which "level of n" it is having maximum value. i.e. how can i know that n=4 & 5 has maximum value 99!!??
> >
> > How can i calculate that?
> >
> > please help..
> >
> > thanks in advance..
>
> doc max
>
> Use the form:
>
> [C,I] = max(A)
>
> finds the indices of the maximum values of A, and returns them in output vector I. If there are several identical maximum values, the index of the first one found is returned.
>
> If you want to find ALL of the indicies, you will probably have to then use find.
> Something like:
>
> ind = find(A>=C)
it is not working!!
for: [C,I] = max(A)
it is displaying: ??? Too many output arguments.
& for ind = find(A>=C)
it is displaying: 1
what to do!!!! please help..
