
Re: second largest element in a matrix
Posted:
Sep 19, 2008 1:22 AM


"Call SORT with two output arguments." Can you pls give me a quick example of how to do this? Thank you so much, Steve. "Steven Lord" <slord@mathworks.com> wrote in message <gavast$1dd$1@fred.mathworks.com>... > > "Oluwa KuIse" <wespeakforex@yahoo.com> wrote in message > news:gav3p9$som$1@fred.mathworks.com... > > Hello, > > Can anyone pls tell me how I can find the second (or third) largest > > element in a matrix AND its position. The max function gives the largest > > element and its position but how do I find the second largest element and > > its position? > > Call SORT with two output arguments. > >  > Steve Lord > slord@mathworks.com >

