error when using function normrnd
Mostra commenti meno recenti
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
Risposte (1)
Walter Roberson
il 12 Apr 2017
1 voto
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 Commenti
chuanqiang
il 19 Ott 2022
SO how can I downlod it
Walter Roberson
il 19 Ott 2022
If you are using a recent matlab then the Add-on Explorer can be used to install toolboxes that you have licensed.
Categorie
Scopri di più su Introduction to Installation and Licensing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!