I’m using some code that requires Matlab’s rangesearch().

I tried looking it up, but I’m confused about implementational details.

If I understood (Find all neighbors within specified distance using input data - MATLAB rangesearch - MathWorks Nordic):

For each row vector of Y, it finds the row indices of X that are within the specified radius.

Then it repeats this for every row vector of Y.

Any input?