Effacer les filtres
Effacer les filtres

the content of random()-function

1 vue (au cours des 30 derniers jours)
kat001
kat001 le 3 Juin 2018
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.

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Juin 2018
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

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by