Gamma Random Number with Shape Parameter from Matrix
Show older comments
For example, my shape parameter value in 1x5 matrix = [1.1 1.2 1.3 1.4 1.5] and my scale parameter value is 2. How to generate gamma random number from those value at once so I can get the results in 1x5 matrix? Actually I want to generate from matrices 1x100 so it will be quite difficult if I have to generate them one-by-one manually.
Thank you for your kind help!
Regards,
Debby
Answers (1)
Walter Roberson
on 9 Jun 2020
gamrnd(2, [1.1 1.2 1.3 1.4 1.5])
1 Comment
Debby Chairubby Lubis
on 10 Jun 2020
Categories
Find more on Gamma Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!