If you have the Signal Processing Toolbox, you can use thepwelch function to get the confidence intervals. See the documentation onUpper and Lower 95%-Confidence Bounds. You can specify the confidence bounds you want.
To get the variance, first calculate the probability corresponding to one standard deviation:
Npdf = @(x) (1-erf(-x./sqrt(2)))./2;
SD_1 = diff(Npdf([-1 1]))
SD_1 =
682.6895e-003
so use that as the probability for the'ConfidenceLevel' value. Square the value the function returns to get the variance. (The Statistics Toolboxnormcdf function will also produce this probability value.)
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.