How to plot a triangular distribution in matlab?

7 ビュー (過去 30 日間)
Dante Ian Detera
Dante Ian Detera 2013 年 4 月 12 日
I have these parameters for my triangular distribution: a = 0.6 (upper limit) b = 1.2 (lower limit) c = 0.8 (mode or most probable value)
How can i plot this on matlab 2009a?
Thanks, Dante

採用された回答

Image Analyst
Image Analyst 2013 年 4 月 12 日
That's one of the bazillion distributions included in RANDRAW. Download it from the File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/7309-randraw. Open it up and go to that section of the code to see how it's done.
For the general case, see the theory here: Wikipedia article on Inverse Transform Sampling

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by