diff --git a/Task/K-d-tree/Matlab/hypercubePoints.m b/Task/K-d-tree/Matlab/hypercubePoints.m new file mode 100644 index 0000000000..b3755cc40e --- /dev/null +++ b/Task/K-d-tree/Matlab/hypercubePoints.m @@ -0,0 +1,6 @@ +function randomPoints = hypercubePoints(numPoints, hypercubeSize, numDimensions) + % Generate random points in the n-dimensional hypercube + + randomPoints = hypercubeSize * rand(numPoints, numDimensions); % scales these values to the dimensions of the n-dimensional hypercube +end +