How can I substitute the arrays of a list to the frameCenter1 variable in the following Do loop? I used frameCenter1[[i]] but no answer. Assume frameCenter1 can be selected from this list: frameCenter1 = {{1, 10}, {7, 10}, {9, 4}}
dalist = {{9, 6}, {5, 6}, {6, 0}, {0, 5}, {10, 8}, {1, 2}, {10,
4}, {1, 1}, {7, 7}, {6, 8}, {5, 3}, {6, 9}, {7, 4}, {1, 8}, {10,
0}, {10, 7}, {6, 3}, {4, 0}, {9, 2}, {4, 7}, {1, 6}, {10, 8}, {7,
8}, {0, 9}, {3, 4}, {0, 0}, {8, 5}, {4, 5}, {6, 0}, {2, 9}, {2,
4}, {8, 4}, {7, 4}, {3, 6}, {7, 9}, {1, 9}, {1, 4}, {8, 0}, {8,
9}, {5, 4}, {2, 5}, {2, 9}, {3, 1}, {0, 6}, {10, 3}, {9, 6}, {8,
7}, {7, 6}, {7, 3}, {8, 9}, {7.5, 9}, {6.5, 9}, {7, 9}, {1, 5}, {2,
6}, {1, 10}, {0.5, 8}, {1.5, 8}, {0.5, 7}, {1.5, 7}, {0.5,
6}, {1.5, 6}, {0.5, 5}, {1.5, 5}, {0.5, 4}, {1.5, 4}, {0.5,
9}, {1.5, 9}, {1, 7}, {2, 8}, {7, 10}, {9, 4}, {8, 4}, {8, 3}, {9,
5}, {9, 3}, {7.5, 3}, {8.5, 3}, {9.5, 4}, {8.5, 4}, {9.5, 4}, {7.5,
4}, {9.5, 4}}
frameCenter1 = {{1, 10}, {7, 10}, {9, 4}}
b1 = Do[
Select[dalist, EuclideanDistance[#, frameCenter1[[i]]] < 2 &]
, {i, 3}]
Function[{point}, Select[dalist, EuclideanDistance[#, point] < 2 &]] /@ frameCenter1
do the trick? $\endgroup$