You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). Triangular Distributed Random Variable Generator (https://www.mathworks.com/matlabcentral/fileexchange/8054-triangular-distributed-random-variable-generator), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Two-Sided Power Distribution
General Information
- Version 1.0.0.0 (1.36 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Updated Help Section of the script.
|
