Create hypercubePoints.m

This commit is contained in:
Ramy-Badr-Ahmed 2024-08-09 15:36:19 +02:00 committed by GitHub
parent 5c1bb7bfa9
commit 69a30da0a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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