I am using matlab to plot the random variables satisfying the normal distribution. I plot the histogram as
w = 0.2;
y = randn(1, 1000)*w;
hist(y);
this shows the variables in the histogram ranges from -40 to 40, but what’s that? I think since the width of the normal distribution is 0.2, I think the range of the variable should be within -1 to 1, right? So why the hist shows from -40 to 40? How do I know the actual range of the random variable? Thanks.
Can you give a bit more information?
When I run your snippet, I get a Gaussian histogram with min and max: