Prev: Help!! How to cut convex area and fill in concave area of a 2D region...?
Next: optimization toolbox
From: Steve Amphlett on 27 Jan 2010 09:47 "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 27 Jan 2010 10:05 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
First
|
Prev
|
Pages: 1 2 3 Prev: Help!! How to cut convex area and fill in concave area of a 2D region...? Next: optimization toolbox |