Function to return poisson random variable

1 回表示 (過去 30 日間)
Moh. Saadat
Moh. Saadat 2019 年 12 月 17 日
編集済み: Ridwan Alam 2019 年 12 月 17 日
Hi,
What is the (Is there any) MATLAB function to return a poisson random variable that is NOT NECESSARILY an integer? I know about poissrnd(), but apparently this function only returns integers inspite of any given input of lambda values.
e.g.
poissrnd(5.1)
ans =
7

回答 (1 件)

Ridwan Alam
Ridwan Alam 2019 年 12 月 17 日
編集済み: Ridwan Alam 2019 年 12 月 17 日
random('Poisson',lambda)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by