Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Katie
Posts:
2
Registered:
11/27/12


Sorting ordered pairs
Posted:
Nov 27, 2012 12:44 AM


I am trying to sort ordered pairs of a very large data set based on the criteria that y(i) >= 17000 + 2*x(i). I want to keep the ordered pairs that meet the criteria and get rid of the ones that don't. I was thinking about a for loop along the lines:
for i=1:length(x) if y(i)>= 17000+2.*x(i) y=y(i); x=x(i);
but then I didn't know where to go from there. Any help would be appreciated.



