Syntax error to generate Log Normal Variables
Afficher commentaires plus anciens
I would like to generate 2x4 matrix of values which are log normally distributed
with mu= 1.175 and sigma = 0.0768 .. However when I write the following command
A= lognrnd(1.175,0.0768,2,4);
It appears the ouput error as follows:
??? Undefined function or method 'lognrnd' for input arguments of type 'double'.
Can any person please help me to resolve the issue ?
2 commentaires
Star Strider
le 12 Sep 2012
It is a Statistics Toolbox function.
Type:
which lognrnd -all
on the Command Line to see if it exists on your system, and to be sure there is only one function with that name.
Jav Neo
le 13 Sep 2012
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Exponents and Logarithms dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!