Prev: Newton-Raphson
Next: Best fit with conditions
From: Jos (10584) on 18 Jan 2010 17:20 "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hj25so$ouj$1(a)fred.mathworks.com>... * snip * > The given example does not distinguish between SORTROWS or SORT of first line. The OP has to define what should happen for: > NN=[ 1 2 3 > 4 2 9 > 4 1 9 > 3 5 9 > 2 9 3] > What is the last row then? > SORTROWS: [4 2 9], because it is "greater" than [4 1 9] > SORT(1st column): [4 1 9], because it is "later" in the input. > > Kind regards, Jan Dear Jan, You're right: an ill-defined problem. Will we ever hear from the OP? Jos |