Triangular Distributed Random Variable Generator
This function generates a vector of triangular distributed continuous random variable. By specifying minimum value(a), maximum value(b), mode(c), and number of variables to be generated(n), the function gives a vector of random variables as output (X). The command syntax is X=trirnd(a,c,b,n).You can see the histogram by using the command such as hist(trirnd(1,5,10,100000),50);
Cite As
Mongkut Piantanakulchai (2024). Triangular Distributed Random Variable Generator (https://www.mathworks.com/matlabcentral/fileexchange/8054-triangular-distributed-random-variable-generator), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Two-Sided Power Distribution
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.0 | Updated Help Section of the script.
|