Gamma Random Number with Shape Parameter from Matrix
Mostra commenti meno recenti
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
Risposte (1)
Walter Roberson
il 9 Giu 2020
gamrnd(2, [1.1 1.2 1.3 1.4 1.5])
1 Commento
Debby Chairubby Lubis
il 10 Giu 2020
Categorie
Scopri di più su Gamma Functions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!