Random Variables with nakaqami - m distribution.

How can i generate random variables having distribution Nakagami-m ? such that parameter 'm' is user defined.
Thank you.

Answers (1)

Do you have the Statistics Toolbox? If so
pd = makedist('Nakagami','mu',5,'omega',2);
R = random(pd,1000,1);
Change the mu parameter as you wish

3 Comments

Well I do have 'Statistics Toolbox Versio 7.3' installed. but the function u told i.e. makedist() is not working. my MATLAB version is 2010a.
kindly help.
I have solved my question use this method. Thanks Wayne King . best wishes.

Sign in to comment.

Categories

Asked:

on 29 Mar 2014

Commented:

on 24 Feb 2020

Community Treasure Hunt

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

Start Hunting!