How can I create N normally distributed points within a N x N square with the mean at the centre (More points concentrated at the centre). I would appreciate an approach in which the coordinates of each points could be stored in a struct. I have tried the code below
for i=1:200
S(i).x=randn*200;
S(i).y=randn*200;
plot(S(i).x,S(i).y,'.');
axis([0 200 0 200]);
end
However, I observed I got negative values. Using a centre [mean] of (100,100) in a square, I want to store normally distributed points between 0-200 for a 200x200 square. Thanks

mvnrndto properly specify both the mean and variance of your distribution.