gendist

gendist generates a 1xN dimension array with a gaussian/normal or uniform distribution.
50 Downloads
Updated 23 Dec 2019

View License

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
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0