From: Steve Amphlett on
"davidebacc Bacchini" <davidebacc(a)hotmail.com> wrote in message <hjoq5i$34f$1(a)fred.mathworks.com>...
> Hello,
> what i need is to extract the indixes of the n greatest elements of a vector. Is there a function to do it?
> Example:
> vector = [3 2 5 9 1 4 6]
> ngreat(1)
> ans = 4
> ngreat(3)
> ans = [3 4 7]
>
> Thank you

You need to define "great". Numbers like 42 and 888 are considered great by some. Then of course there's 7 (Barry Sheen's old number) and 69 (popular on the internet).
From: davidebacc Bacchini on
Ok, sort is the way to go...for a stupid error it seemed to me that it took too long time to sort all the matrix i was using
Thank you all guys

P.s. I'm not from Liceo scientifico Volterra