From 69a30da0a65f8b8d611947300b216f3d49b8cebf Mon Sep 17 00:00:00 2001 From: Ramy-Badr-Ahmed <126559907+Ramy-Badr-Ahmed@users.noreply.github.com> Date: Fri, 9 Aug 2024 15:36:19 +0200 Subject: [PATCH] Create hypercubePoints.m --- Task/K-d-tree/Matlab/hypercubePoints.m | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Task/K-d-tree/Matlab/hypercubePoints.m 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 +