undercurve

Finds the area under the curve of a normal distribution and plots a pdf with the area shaded.
30 Downloads
Updated 6 Mar 2019

View License

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
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Descriptive Statistics and Visualization in Help Center and MATLAB Answers
Version Published Release Notes
2.0.0

hold off added

1.0.0