I have a data-set that has four columns [X Y Z C]. I would like to find all the C values that are in a given sphere centered at [X, Y, Z] with a radius r. What is the best approach to address this problem? Should I use the clusterdata command?
Share
Here is one solution that uses naively euclidean distance:
say
V = [X Y Z C]is your dataset,Center = [x,y,z]is the center of the sphere, thenThe good
Cvalues are