gendist
This function requires the input of the following parameters:
-N: the array's dimension (number of samples).
-mean: the distribution's mean.
-variance: the distribution's variance.
-distribution: the type of distribution. For a gaussian/normal distribution, use the 'gaussian' string; for a uniform distribution, use the 'uniform' string. However, when working with uniform distributions, it is more common to specify their domains, instead of their means and variances. In this case, the 'null' string must be introduced as the mean and variance parameters.
-a: in a uniform distribution, the initial point of the domain.
-b: in a uniform distribution, the last point of the domain.
Cite As
Vicente Núñez García (2025). gendist (https://se.mathworks.com/matlabcentral/fileexchange/73768-gendist), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Continuous Distributions > Uniform Distribution (Continuous) >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
