undercurve
Finds the area under the curve of a normal distribution and plots a pdf with the area shaded. Can take one of two paths:
1) undercurve(pd,'p',a,b)
2) undercurve(pd,'v',a,b)
pd is a distribution object;
Use path='p' to find the proportion of sample under the curve of a normal distribution,
where pd is a normal distribution with a defined mu & sigma, a and b
are the values from the distribution in which you wish to find the area between.
Use Path='v' to find the values corresponding to a percentage of the data, for example, the inner 95% of the data. a is first percentage, b is the second percentage.
Cite As
Scott Callahan (2026). undercurve (https://in.mathworks.com/matlabcentral/fileexchange/70470-undercurve), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
