dpb
Posts:
9,773
Registered:
6/7/07


Re: second largest element in a matrix
Posted:
May 4, 2013 10:59 PM


On 5/4/2013 7:54 PM, Nasser M. Abbasi wrote: > On 5/4/2013 6:14 PM, tilindg1@gmail.com wrote: > >> IF for example, i have a matrix [3,1,1,0,2,0] > > this is not a matrix. it is a list of a vector.
A vector is a 1D matrix...
>> and want to make a function to display the first >> and second largest value, how could i write it? >> > > may be use sort()?
Possible, but
doc find % use optional arguments...


