Thanks for the reply.
I agree, this would definitely not be the best way to find the index of the closest point. The goal of the code is to locate points along the Pareto front. To illustrate, here's a diagram from Wikipedia:
http://en.wikipedia.org/wiki/File:Front_pareto.svg"
All of...
I have tried to create a simpler version of my code for posting. What this code does (or is supposed to do):
First, create a matrix (nrpts x 2) that contains my data (for this test code, just a bunch of random numbers). Next, create a nrpts x 1 array that contains the series 1, 2, 3, 4...
Hello!
I consider myself typically a confident Matlab user. But I have encountered a new problem that I have no idea how to solve, so I'm hoping I can find some help.
I have set up a for loop in my code to the effect of
for i = 1:n
if MyArray(i,1) < some value
perform other...