Here is a new MATLAB Puzzler.
Given two vectors representing the X and Y coordinates of some points, find the two closest points in Cartesian space.
n = 10;
x = rand(1,n);
y = rand(1,n);
Brett… 続きを読む >>
Here is a new MATLAB Puzzler.
Given two vectors representing the X and Y coordinates of some points, find the two closest points in Cartesian space.
n = 10;
x = rand(1,n);
y = rand(1,n);
Brett… 続きを読む >>