フィルターのクリア

the content of random()-function

1 回表示 (過去 30 日間)
kat001
kat001 2018 年 6 月 3 日
回答済み: Walter Roberson 2018 年 6 月 3 日
I would like to understand the random()-function. I am not really understanding the explanation regarding this function given in 'Help' section of Matlab.
So, if I have:
random('norm',4,7,5,1)
where 5, 1 within the function is the 5X1 matrix. What are 4 and 7? Result of this function is not making much sense to me. Help appreciated.

採用された回答

Walter Roberson
Walter Roberson 2018 年 6 月 3 日
4 would be the mean and 7 would be the standard deviation
>> t = random('norm',4,7,100000,1);
>> mean(t)
ans =
3.99442010154698
>> std(t)
ans =
6.97807359086561

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by