フィルターのクリア

Why am I getting the following error when I am using function for generating random number?

9 ビュー (過去 30 日間)
Anuradha Bhattacharya
Anuradha Bhattacharya 2016 年 10 月 4 日
編集済み: KSSV 2016 年 10 月 4 日
x = random('Poisson',1:100,1,10);
Error using poissrnd (line 28)
Size information is inconsistent.
Error in prob.PoissonDistribution.randfunc (line 177)
[varargout{1:nargout}] = poissrnd(varargin{:});
Error in random (line 140)
r = feval(spec.randfunc,varargin{:});

回答 (1 件)

KSSV
KSSV 2016 年 10 月 4 日
編集済み: KSSV 2016 年 10 月 4 日
You must try either
x = random('Poisson',1:100,1,100);
or
x = random('Poisson',1:10,1,10);
doc random

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by