I am trying to figure out how to use the matlab gausswin function which constructs a Gaussian window for $N$ samples with a given standard deviation $\sigma$. The function is defined by
w = gausswin(N, alpha)
where alpha is $1/\sigma$. I would like my Gaussian window to contain $\pm 3 \sigma$ in the Gaussian. So for $N$ samples it seems I should do: $6 \sigma = N$ or $\sigma = N/6$. However, here are the results for $N = 100$ and $\sigma = 100/6 \approx 16.666$:
Clearly this Gaussian does not extend to $\pm 3 \sigma$. Can someone tell me what I'm doing wrong?
My guess it is has something to do with some length scale which isn't being properly specified. It seems to me that the alpha input to the gausswin function is some kind of normalized (unitless) standard deviation. Perhaps I'm not accounting for that.