Gamma Random Number with Shape Parameter from Matrix
Mostrar comentarios más antiguos
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
Respuestas (1)
Walter Roberson
el 9 de Jun. de 2020
gamrnd(2, [1.1 1.2 1.3 1.4 1.5])
1 comentario
Debby Chairubby Lubis
el 10 de Jun. de 2020
Categorías
Más información sobre Gamma Functions en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!