the content of random()-function

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by