error when using function normrnd

13 ビュー (過去 30 日間)
Linxi Han
Linxi Han 2017 年 4 月 12 日
コメント済み: Walter Roberson 2022 年 10 月 19 日
Hi,
I had an error using the function "normrnd" for generating random samples in a normal distribution today.
My code reads like this:
n1 = normrnd(1:6,1./(1:6))
the error reads like this:
Undefined function 'normrnd' for input arguments of type 'double'.
Could someone please help me with this problem?
Thanks a lot! Linxi

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 4 月 12 日
You do not have the Statistics toolbox installed and/or licensed.
If you are using a Student license then you probably forgot to install the Statistics toolbox.
  2 件のコメント
chuanqiang
chuanqiang 2022 年 10 月 19 日
SO how can I downlod it
Walter Roberson
Walter Roberson 2022 年 10 月 19 日
If you are using a recent matlab then the Add-on Explorer can be used to install toolboxes that you have licensed.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by