No License
interval=ci(x,confidence,dim);
90%, 95% or 99% confidence interval of a vector or 2d matrix
Optional dim refers to dimension and must be 1 or 2 (default is 1).
Optional confidence must either 90, 95 or 99 (default is 95).
Calculated as the standard error multiplied by the critical two-tailed value of t for a=0.10, 0.05 or 0.01 (see Statistical methods in psychology, D.C. Howell). This formula applies when the Population standard deviation is unknown. As n gets larger then the t distribution approaches the normal distribution. So, if n>120, uses z instead of t (e.g. 1.96 standard errors, for 95% interval)
Raymond Reynolds 23/11/06
Cite As
Raymond Reynolds (2026). ci.m (https://nl.mathworks.com/matlabcentral/fileexchange/13097-ci-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Reverberation Time Calculator
Communities
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
